From patchwork Thu Nov 7 10:58:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Scally X-Patchwork-Id: 21833 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 92EB1BE173 for ; Thu, 7 Nov 2024 10:58:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9F55065474; Thu, 7 Nov 2024 11:58:55 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="iO6ROfaK"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CD15565458 for ; Thu, 7 Nov 2024 11:58:53 +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 CE4325B3; Thu, 7 Nov 2024 11:58:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1730977125; bh=2Ug219v+rEB9FXE3BjkzUTjsDICfncACx/x8zrxOiyc=; h=From:To:Cc:Subject:Date:From; b=iO6ROfaK9gg8VzXX/FeQvHArlxPcmmK8+9KilTh38EuEk0v4RLBAmJ+HYtXtFHRg8 IAGUTI9f0oijnugzoW90CMB8aN0bfHPBpCpwFX3bJsG2puvR/lc2oj37TOI0ERQMQU gdWvp+nYGSCyUGIZZkVFVydfB9t9u5D73chtO//k= From: Daniel Scally To: libcamera-devel@lists.libcamera.org Cc: Daniel Scally Subject: [PATCH v5 00/13] Miscellaneous Mali-C55 Pipeline Fixes Date: Thu, 7 Nov 2024 10:58:33 +0000 Message-Id: <20241107105846.52287-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 (6): 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: 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/pipeline/mali-c55/mali-c55.cpp | 357 ++++++++++++++----- src/libcamera/v4l2_subdevice.cpp | 42 +++ 3 files changed, 323 insertions(+), 85 deletions(-)