From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 846B6382F26 for ; Thu, 7 May 2026 22:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778194208; cv=none; b=KfaDSS18ed01khIEBfNDDVZ4Bu2WoprkC59QW09BPFbfBlt+ldnurCrVEIZOd4tvApKvC/D/bpSGpVFsqxZ1btDHFi64BZOc36lOO9GsNqT7dEFVgajq/Y5+roTHN28ageEKVM8b3tbBJ35fGMPOkOw8y0qszKsA/bcGaBHwZzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778194208; c=relaxed/simple; bh=5GDnKhmBM1yypsTlKGw6vvvavdKBYfnkdInWhp+vMLE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=dfAd/sCHI/aEMZhkRNuR1eZ+8NfG3lP3rTbGUmPI5S70gxyXLFgVwHHRjLwszL0HrXBnWRRTKBMpUlmwctcW44o60n0ayQh1i4QZjXycP0WDPDJ8ZWNbOIoyD8RokFjyPOo5N0eNwlS+ajWyBP6ONx/Gi5dXHQ6gdbTG3VKku88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=nJpfz3k3; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=VJXJTmfb; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="nJpfz3k3"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="VJXJTmfb" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 647J7PhM2531299 for ; Thu, 7 May 2026 22:50:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=PkSeNiGbgA7F4Yd46b6MKb ZkR6t+RRbEp49Tj4V3k2k=; b=nJpfz3k3mr8yc6QkzDSrJ92J8inLaEtOezoerF 1YOvTJNnzJsD4c6IDiAbJkK+QUa2iE10ZuBTG/kJ8yRApG61t66RL1fKusqpAZpZ nB5NWDf4XIP8WAujf0QrJEeb/sG/fU9lF59daWUa0hYW2rrpEMRoJ9BzIFJzFb4X QQHd3pKjhJWX5yvlH6EIUORB5q2Ao+++87ogW7ULDfrIN9ssbl3tS5PSQ7h1ZB59 t7dO0CVcFwZ1zwSd8nM8TY8kseEfjwJnRyqdCxndmU2LqVUPRwA6O3OcSHeirCdk 3yr6iYJX44T0sY6/pv8yUc2+xm7hIVpalguiM00/1K7OL8Xg== Received: from mail-vs1-f70.google.com (mail-vs1-f70.google.com [209.85.217.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e10m9rm0w-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 07 May 2026 22:50:05 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-63136c0b6fbso777308137.1 for ; Thu, 07 May 2026 15:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778194205; x=1778799005; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=PkSeNiGbgA7F4Yd46b6MKbZkR6t+RRbEp49Tj4V3k2k=; b=VJXJTmfbMbu2BgO7nr02MNHKROAI12Tca3rGNcKmz/1Vc9jJfr/4ByOzBMEvocwd+N vd7g8ozYOQQeYQM7AuU5hqaGHZ0vQkbf9SBuCU51XKNwlsU5+hr9fV5EQwLp8Ez42p4A T1cG5x8z92EkMvtxwQPsuOPlqGjVBwFLJQr3bibqtaz4PDWFLsb4NfMnweZfdGRlkU2Y qw8vk+NXDanlQtVEcT6+ci16lMWpzV09QfECImko7wBNQ7u+e8dMBqAqnejTEgEEpn2v Ezf2qe3Qu2wyXhZGr5Xj+SM403TL67x45uZjsnrEcJmpluthVo+iUef35VRDMS9HBYnO 9t3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778194205; x=1778799005; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PkSeNiGbgA7F4Yd46b6MKbZkR6t+RRbEp49Tj4V3k2k=; b=SZoR2ZqDuIyOfBHdzjWrP2c/ioKtoBMFiWld6/3ckp24q5ZuDWwUdE9+NW2aipo1Da ibPWK9nUOjpzjs7hQ3LD6W318bMTWC6uVHN4DJvpsggOLvMBTdhzyxdTm0DR5BJEPMGY kP4if8gxO4yfk32WOjD32fBiLmpjW4lWlo/2MGu8F31iVAZw7pj1g+LruoYVr/wON5pe w6AkjF1QIro6vmPI+7Bp+5ngM+P7Gv+S4NMfwnev5PMk6uPPrGzIoK85SmkdgbWOL4gC U7f4rj2lohcFQVlLpLWpnbA/aMtguATf5xH/pAj1alHcuIdUeVOEeIG/t5uXQKQ0HGA8 dcUQ== X-Forwarded-Encrypted: i=1; AFNElJ9VYBbyBF5ZXqVS9DJQz63vX+xLrScBfCN1Abe1cUMFGimwGez9tZHwsuH/ZYvIr/tS5JeCx2D2LOKVaWQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yzi3uS7OTx17I+WyiG5q4zoAPEoAf7TFoQkzHh6oYmvTKRCZUe1 /1lL8eFNwphs+8JacfAbpxPWHEQr6geFgtccnZzvxzwtalNLhXIrZnxXSWuy8fn7L7DN18qSXBq DG5+trHGqr2GJJuhvyZIRYtVHGWd8+pYMcjWNgFvtWOXBGSk00emJOHJDw/mIxx+P9573P04IMi E= X-Gm-Gg: AeBDievrofJCQ3CgJmnbp+Cf+HWX/o3PM5dbRZvnBy9E76M2fwFva7+GGXome/rw8MD Anh1/cfKRAHPdPcjhE/Y+b9+tEsI9rfOUtIFTL+cU3CDIyN04AwitPyqyQjnXdQHR25ob34ssEB heiL7kJJTMY3iQAxAbZ/DxK2mV3uvZ+VwA4sc1jz0EU+D/2gGvwYA7SsgoUfDJe93xF87retHHH gS1Cwr2BdREx1UwZqc75lIgQNVrZxUuCXFAKdu0AYkadty1GxwQct0XUAdUVkWU0690zvuA5GpT oeKH/2ByDJOaQMcpOZLFzZZngC7z/lYaVe+7eYCOUfZaKe6Y/VSxUBDsFEkwydEiVpY2GSXNKUo IzU+R2YKogFOt4uDSHJ/B64qPCEtoEFHYK84UQ7iJytA2ciZRDm2VU9iweMpHMyq2w2GNiBJAlu RaVB+yM4NF3hPBha6m X-Received: by 2002:a05:6102:5813:b0:62f:3686:4b86 with SMTP id ada2fe7eead31-63115d846f7mr2051136137.1.1778194204666; Thu, 07 May 2026 15:50:04 -0700 (PDT) X-Received: by 2002:a05:6102:5813:b0:62f:3686:4b86 with SMTP id ada2fe7eead31-63115d846f7mr2051119137.1.1778194204230; Thu, 07 May 2026 15:50:04 -0700 (PDT) Received: from QCOM-eG0v1AUPpu.na.qualcomm.com ([2a01:e0a:830:450:b16a:3475:ec42:bcfa]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bcac4359dbesm102466b.48.2026.05.07.15.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 15:50:02 -0700 (PDT) From: Loic Poulain Subject: [PATCH v3 00/15] media: qcom: camss: CAMSS Offline Processing Engine support Date: Fri, 08 May 2026 00:49:15 +0200 Message-Id: <20260508-camss-isp-ope-v3-0-bb1055274603@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOwW/WkC/3XOMQ7CMAyF4augzLhK3IQCE/dADCE41FLblBgqE OrdCSwMiMXSP/jTeyqhzCRqu3iqTBMLp6FEvVyo0PrhTMCn0go1rrTFBoLvRYBlhDQS2KNrXIw UkE6q/IyZIt8/3v5QOubUw7XN5L9KjbVBt0ZboTEr48BAlzhUY7p1noddEqkuN9+F1PdVOW+3Z bmm/PjMnPCt/1s0IWiIttbU2LXTevPrHeZ5fgG2JIlV+QAAAA== X-Change-ID: 20260427-camss-isp-ope-4b575ffec2ed To: Bryan O'Donoghue , Vladimir Zapolskiy , Loic Poulain , Mauro Carvalho Chehab , Kees Cook , "Gustavo A. R. Silva" , Bryan O'Donoghue , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, devicetree@vger.kernel.org, laurent.pinchart@ideasonboard.com, kieran.bingham@ideasonboard.com, johannes.goede@oss.qualcomm.com, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Proofpoint-GUID: DZug5vceYgcv6xYAfBAzT0m2KO9YeCZg X-Authority-Analysis: v=2.4 cv=VP3tWdPX c=1 sm=1 tr=0 ts=69fd171d cx=c_pps a=N1BjEkVkxJi3uNfLdpvX3g==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=NEAV23lmAAAA:8 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=oJE8aRnLwfUkw7FiLPAA:9 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTA3MDIzMSBTYWx0ZWRfX2ozUDyOIn0CM J+MREiEjq1bXzQCAG47aTMlaXm79AHEXAdkMkNtuVClaQH3ZUN29kGr0d1ZigofLFHT8Wvfojcj SXRMfq+KhD3fJPuPdVvfHcYV//OOEZHZGWf3i7U4xgRtR5wOP39t3f1NTPs5gsQ7T1mST2KHdVf gFeRNEfpfRE9h1Bc8uFpXIRVIrU7EH4RH4joL6p7An78WQTM5rChymWedmwL7VT1XG81RoJe/R4 9TZyEgOw7kvRL6F0svrIrrpJZURRQ5YaatqoACZ6ILrwvBibV0O2mUj0IEdrax1vD6UUYRapOPW hTebW5eUrt1qATA6zhJnGW1l1MSBfinQTtC0VJDo9mHeAeCyiIi28Q8Bwub8C7yNHpFQAaf0jjX dH2ZIWC4Yj8jto9kCPw1zqCpAdCRggdikmH6YpgmAy9dgzJtFwgsKPuaBXJfKUa8o1/Oo6qReai 7d5V2PR7Efi91yri9+w== X-Proofpoint-ORIG-GUID: DZug5vceYgcv6xYAfBAzT0m2KO9YeCZg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-07_02,2026-05-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 suspectscore=0 phishscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2605070231 This series introduces support for the Qualcomm CAMSS Offline Processing Engine (OPE), as found on Agatti-based platforms. Boards such as Arduino UNO-Q use this SoC family and will benefit from hardware-assisted image processing enabled by this work. This represents the first step toward enabling image processing beyond raw capture on Qualcomm platforms by using hardware blocks for operations such as debayering, color correction, and scaling. The OPE sits outside the live capture pipeline. It operates on frames fetched from system memory and writes processed results back to memory. Because of this design, the OPE is not tied to any specific capture interface: frames may come from CAMSS RDI or PIX paths, or from any other producer capable of providing memory-backed buffers. The hardware can sustain up to 580 megapixels per second, which is sufficient to process a 9MPix (4K) stream at 60 fps or to handle four parallel 2MPix (HD) streams at 60 fps. In order to enable reuse across future CAMSS ISP implementations, a new camss-isp-common module is introduced, providing common helpers for: - buffer queue management - job scheduling - pipeline construction - parameter parsing While currently tailored for CAMSS ISP drivers, these helpers are designed in a way that allows further generalization and extension into the V4L2 ISP framework. The driver is designed to support multiple processing contexts. At present, however, only a single context is instantiated, which is created on the first media-pipeline open. This keeps the implementation simple while ensuring the design is ready for forthcoming multi-context support at the V4L2/media framework level. Since the OPE is a child node of the CAMSS device, the CAMSS driver is reworked to properly share and manage power-related resources, including power domains and common clocks. Graph: ope_input ----+ +--> ope_proc --> ope_disp --> ope_disp_output ope_params ---+ Compliance: v4l2-compliance has been executed without any error on the media and video devices. Testing: A camss-isp-m2m tool is available at https://github.com/loicpoulain/camss-isp-m2m-test The tool can be used to exercise and stress-test the OPE engine, as well as to observe performance and latency behavior under various operating conditions (resolution, format, buf count, etc). ./camss-isp-m2m -s 3840x2160 -n 5 Name Device Dir Type -------------------------------------------------------------- ope_input /dev/video10 output video ope_params /dev/video11 output meta ope_disp_output /dev/video12 capture video ope_proc /dev/v4l-subdev13 - subdev ope_disp /dev/v4l-subdev14 - subdev Test: 3840x2160 RGGB -> 3840x2160 NV12 [5 frames] Input /dev/video10 3840x2160 RGGB bpl=3840 size=8294400 Output /dev/video12 3840x2160 NV12 bpl=5760 size=12441600 Buffers: /dev/video10 buf[0] offset=0x00000000 length=8294400 VA=0xffffbcb87000 /dev/video11 buf[0] offset=0x00000000 length=12441600 VA=0xffffbbfa9000 Streaming 5 frames... seq=0 buf: in=0 out=0 14.833 ms (67.4 fps) seq=1 buf: in=0 out=0 14.874 ms (67.2 fps) seq=2 buf: in=0 out=0 14.902 ms (67.1 fps) seq=3 buf: in=0 out=0 14.960 ms (66.8 fps) seq=4 buf: in=0 out=0 14.896 ms (67.1 fps) Changes in v3: - Simplified camss_init_pm_clks()- no clk_get, no rate setting; - Added Assigned clock rate in devicetree for CAMSS AXI clock - Add Kernel Doc for camss-isp-bufq exported functions - Added description explaining the 2-cell for CAMSS bus - Reworked OPE media topology with intermediate ope_disp subdev - Support for crop and compose in ope_proc sink/source - Fixed Write Engine violation with some scaling config - Fixed input/output custom-stride issue (Hans) - Split uapi header (camss-config.h) into its own dedicated commit - Patch reordering to respect dependency in regards to ABI/dt-bindings introduction - Link to v2: https://lore.kernel.org/r/20260427-camss-isp-ope-v2-0-f430e7485009@oss.qualcomm.com Changes in v2: - Not an RFC anymore - Move from v4l2-m2m to multi-devices design - Support for parameters - Helpers for pipeline, job scheduling, buf-queues - OPE as a child node of CAMSS --- Bryan O'Donoghue (1): media: qcom: camss: Populate CAMSS child devices via DT Loic Poulain (14): media: qcom: camss: Add PM clock support and integrate with runtime PM media: qcom: camss: Add PM clock definitions for QCM2290 media: qcom: camss: Drop top_ahb/axi from QCM2290 subdevice clocks media: qcom: camss: Add camss-isp-bufq helper media: qcom: camss: Add camss-isp-sched helper media: qcom: camss: Add camss-isp-pipeline helper media: qcom: camss: Add V4L2 meta format for CAMSS ISP parameters media: qcom: camss: Add camss-isp-params helper dt-bindings: media: qcom: Add CAMSS Offline Processing Engine (OPE) dt-bindings: media: qcom,qcm2290-camss: Add OPE ISP subnode media: uapi: Add CAMSS ISP configuration definition media: qcom: camss: Add CAMSS Offline Processing Engine driver arm64: dts: qcom: agatti: Assigned clock rate for CAMSS AXI arm64: dts: qcom: agatti: Add OPE node .../bindings/media/qcom,qcm2290-camss-ope.yaml | 131 + .../bindings/media/qcom,qcm2290-camss.yaml | 13 + arch/arm64/boot/dts/qcom/agatti.dtsi | 73 + drivers/media/platform/qcom/camss/Kconfig | 32 + drivers/media/platform/qcom/camss/Makefile | 11 + drivers/media/platform/qcom/camss/camss-isp-bufq.c | 101 + drivers/media/platform/qcom/camss/camss-isp-bufq.h | 122 + drivers/media/platform/qcom/camss/camss-isp-ope.c | 3025 ++++++++++++++++++++ .../media/platform/qcom/camss/camss-isp-params.c | 67 + .../media/platform/qcom/camss/camss-isp-params.h | 62 + .../media/platform/qcom/camss/camss-isp-pipeline.c | 372 +++ .../media/platform/qcom/camss/camss-isp-pipeline.h | 230 ++ .../media/platform/qcom/camss/camss-isp-sched.c | 223 ++ .../media/platform/qcom/camss/camss-isp-sched.h | 174 ++ drivers/media/platform/qcom/camss/camss.c | 67 +- drivers/media/platform/qcom/camss/camss.h | 1 + drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/uapi/linux/camss-config.h | 115 + include/uapi/linux/videodev2.h | 3 + 19 files changed, 4807 insertions(+), 16 deletions(-) --- base-commit: cb49dcae0241fb3ea59f42ce2edd69367784b51c change-id: 20260427-camss-isp-ope-4b575ffec2ed Best regards, -- Loic Poulain