From patchwork Fri Nov 15 10:13:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Scally X-Patchwork-Id: 21903 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 8F5D6C0F1B for ; Fri, 15 Nov 2024 10:13:50 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 036FC6586D; Fri, 15 Nov 2024 11:13:48 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="B49SW7sE"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 74C89600F2 for ; Fri, 15 Nov 2024 11:13:47 +0100 (CET) Received: from mail.ideasonboard.com (cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net [86.13.91.161]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B520C9CE; Fri, 15 Nov 2024 11:13:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1731665612; bh=KHzokjwSB+9ENik/GBOTTJ43w5+ezXJcOACr/qdiFzo=; h=From:To:Cc:Subject:Date:From; b=B49SW7sEWD+IR4qBQJqDboYrBw2K253DgpQZ+M4OwXAclmk0cwdmQS8qHTeZxo5LH 96jxI0ezA102dWjs0YxxEiNTTQRtE5vFIEPJ9vzXJtiKukXXEcZ+xxR9ptNoW9ZvQS 8ZbJ2zH9ndiiftOUgUFJCvEialY3QhfYAaI1xzfo= From: Daniel Scally To: libcamera-devel@lists.libcamera.org Cc: Anthony.McGivern@arm.com, Daniel Scally Subject: [PATCH v6 00/14] Miscellaneous Mali-C55 Pipeline Fixes Date: Fri, 15 Nov 2024 10:13:20 +0000 Message-Id: <20241115101334.453104-1-dan.scally@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi all This set contains a number of fixes to the Mali-C55 pipeline handler that have been in our development tree whilst we worked on the IPA module - they weren't posted before because things have been in quite a lot of flux, but now that the IPA patchset is itself public it's time for these to go upstream too. Thanks Dan Prior changelogs (which are now on the patches themselves) v3-v4: based on the v6 of the kernel driver [1] - Collecting tags - Added patches correcting the representation of input/output formats (#10) - Added a patch enabling links between resizer and capture device, which in the latest version of the kernel driver are mutable (#11) - Added the ScalerCrop patches back in (#12 and #13) v2->v3: - Collect additional tags - Add 3 patches to add Mali C55 media bus formats to libcamera and to fix 20-bit format propagation to CSI-2 to ISP v1->v2 - Drop ScalerCrop and scaler handling - Limit ISP input size to 640x480 - Adjust the RAW configuration stride and image size to 4 bytes [1] https://lore.kernel.org/linux-media/20240709132906.3198927-1-dan.scally@ideasonboard.com/ Daniel Scally (7): libcamera: mali-c55: Init camera properties libcamera: mali-c55: Simplify bufferReady() libcamera: mali-c55: Remove MaliC55CameraData::mbusCodes() libcamera: mali-c55: Add stride and size to rawConfig libcamera: bayer_format: Add 20-bit bayer formats libcamera: mali-c55: Correct input/output format representation libcamera: mali-c55: Enable links between resizer and video node Jacopo Mondi (7): libcamera: mali-c55: Limit max size to sensor resolution libcamera: mali-c55: Limit ISP input size include: media-bus-formats: Add Mali-C55 mbus codes libcamera: v4l2-subdevice: Add Mali C55 media bus formats libcamera: mali-c55: Propagate CSI-2 format to ISP libcamera: mali-c55: Enable usage of scaler libcamera: mali-c55: implement support for ScalerCrop include/linux/media-bus-format.h | 9 +- src/libcamera/bayer_format.cpp | 4 + src/libcamera/pipeline/mali-c55/mali-c55.cpp | 381 ++++++++++++++----- src/libcamera/v4l2_subdevice.cpp | 42 ++ 4 files changed, 348 insertions(+), 88 deletions(-)