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 7BF95360EC6 for ; Wed, 29 Jul 2026 18:31:19 +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=1785349883; cv=none; b=CgFtlm8TZhtCOGPU41IR+4wptj86815ywPyiUuSrDqj8B4RICdZ5K5r5jy+wrgCcOilUvJbaqMzCUL6PolVSOgRYNnYeKZcAuBEgzGf9Yi/fDCkCpV6p5dS58vqIT+cK/sSmWHNVmie3Aa/zg/S9Tk4skZy8DL1IPpxvRfvvoqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785349883; c=relaxed/simple; bh=6Jmw8fadTclbG2T2Z68Rl3Wmmn5n2IP4R+z9w4+C6/8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Z8RSLO3LxfQvsSB7pFz+8c3FCclnsSRMEsN9QGeffwGrD+/nfE2SqIuwMT5sfXSAa4GaT+l7IiaDO9B7UWD6N5qUnkGgSXgZ2A+Ti/kkAKfNG9QdlioxEC5AXYu88Zx/NtNrBU7KIGrB7J4ZhPtcPc3bB6QLWDoTZyxk7PKqdoc= 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=OpOTluwo; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=SAbI5V10; 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="OpOTluwo"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="SAbI5V10" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66TIRSkK3071543 for ; Wed, 29 Jul 2026 18:31:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 6e9PyztcWTGin2D498CISl8xSLMp4ILlbC/KGKMteYg=; b=OpOTluwofiGYgtjD lgoZRmTSWWinkWDadOgTD4hNi1AI3YjQb1xWwxVxzZDsEWAg4mkXHxZ9XgKN9ZLU gjWu7jPHsUMpj/d+r+QT04q+KCeFGQkeF15rWU8b10UwVDLJUdaLAo2+9zM3+ew3 bqWcqK9Pe87PkosNZ6fv5mJVAgwm/VCDJA7a3XMR+ioA53Da6mDpeDdh1Jg+edZn EQliwjFqUaPdsSSQUxcn6g2BNE8HdCsZTmIpRW5j6hsqn8bjGyE+OPFLUe6z/aOH Jv92sgn9y+WvOzk9tx2Bz/I1ZzmtJ1WtBk/HRHKnn8Px10/SkE10W7O2jXpFCNwh oD/MnA== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fqprwg0xs-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 29 Jul 2026 18:31:18 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-51bfe3fa93bso13364681cf.2 for ; Wed, 29 Jul 2026 11:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785349877; x=1785954677; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6e9PyztcWTGin2D498CISl8xSLMp4ILlbC/KGKMteYg=; b=SAbI5V10WveV1v9cvqlR7gQUl5Q6mI1RIhmuOv8+FtHfJvV/M/9MLXTHH2hXQjVuWq PZiXhDL93iKAxz8bNOuyboW80GapZoxqSgWLdnB5ys6DwKoiwqUC1JNS0lekG9Ur5F+k VwHYpVXtmM4iliUkHygPxzjzI+39vNDcguN2/CRMwQab71uK6NsWfN4TKmijyJAAmp4D n1e0KEtMpLF5p44JC6lGpcia9uAAdfuc8pbCkoSS45pAA/XGg5CJ0qWHXhhRd76P3Zum qZayvIDOhzrdLQx9/YW4109IsEnzdgnbdNtMFJc7fkVEtF0N/7wc1eReDzC3UYGYVNe2 EBPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785349877; x=1785954677; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6e9PyztcWTGin2D498CISl8xSLMp4ILlbC/KGKMteYg=; b=OxXT7irRMuXBE5d6oyp/kwKDQljUP+8A+j/DSLntQVkGX7TDDtgEGjdZgwu23sdn8M G3lY9I9M08O3ngZ/UsM/6ueuoIOeVP9AuYPC/jArfWsOogVTnMsPtC07b6fkVjEzt7fE x6iyNtOGcTBG7kJmjAyyf4MFw3FPrYAjE2LcyhujPbQ1oV2VtNOOWGXolZo6W926cXAk pr0bP+Vl45Xs/6qVrIaZTIArLud8l83C+1XuAyt+vRgu1UBCTVq7F14V6UaaGw6SjIMK Rk8dGzgPMN8hVY8BurMNIokCeDBM3PGQsAxRuEgc/4/x0pSOvYwt073Uq/qwQxkDavs+ IcNQ== X-Forwarded-Encrypted: i=1; AHgh+RpuLQJG65Csnk6dgiSJlZ8z70N54EQ583Xfo7vArjXbIvdEyodtgFRw6WQlgJW+nnVtJtb3ch3PuMoX@vger.kernel.org X-Gm-Message-State: AOJu0Yx3x7GPR2P8eANScqI8k8ZCIJUIzqS200jonkYOgjwBSuQ7Jr1R +81ZNlwckjGlwkafMz1bjSE9zrwJkZPJk4vJ/U7Bhy6NMZc64bKueIl2U3L20wK6q2NnRFsQ9yZ Air+kDwRuY05C2UuPzK6lIAjcWrm5/M8GKhC5vHazmrRTl7aoUBYac0lGh+10S2z7 X-Gm-Gg: AR+sD13uT2qNFFky41vgkZy1eB8StDGP6CYIuhCKKTBy2FKh/4beNxNFQLyZaNI9zN1 bNAjOgyNGkCE9smGExHZFmNEwTZKhTTj1eyrlwOFitshW9pcOqwDqbZI+zKvA+25Zt3vPnLBW2H dh4GrHB41ZQsr4cotTwWcl6Rqf9HvXAbJppgXKbeuVD044DFg+LlytlScg2RKq1wF3sq+HFIaUv 3IFa6DsTlCdSxbiTfgmSfUiHCtPuNEjdRTR6bDxBYQ3As3C83lhbOwqPCqO1gjEX3WAlzifSBhN XSCKD0JQrdUJtSzvCBdlNvouUfPnC/FciZRJ6NJcR2JVX/jvYlnY2B/itkWuZRj4fgYLfge3Its yky5nyUwmKMRE3lCQQuH7VaAwvufQ6KlrHCnXQzOU/DVNbrrZAvnX/i/XAyi6VjfElqjJwIoe X-Received: by 2002:ac8:7d4e:0:b0:51c:1cbd:5fdc with SMTP id d75a77b69052e-529d6faf8eemr75038311cf.10.1785349876973; Wed, 29 Jul 2026 11:31:16 -0700 (PDT) X-Received: by 2002:ac8:7d4e:0:b0:51c:1cbd:5fdc with SMTP id d75a77b69052e-529d6faf8eemr75037651cf.10.1785349876366; Wed, 29 Jul 2026 11:31:16 -0700 (PDT) Received: from [192.168.1.31] ([85.196.172.179]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47fb6acb6c9sm11104361f8f.13.2026.07.29.11.31.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jul 2026 11:31:15 -0700 (PDT) Message-ID: <50662ecf-22a6-43dc-baca-9cd58001b51e@oss.qualcomm.com> Date: Wed, 29 Jul 2026 21:31:13 +0300 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 3/5] media: uapi: Add CAMSS OPE ISP configuration definition To: johannes.goede@oss.qualcomm.com, Loic Poulain , Bryan O'Donoghue , Vladimir Zapolskiy , Mauro Carvalho Chehab , Kees Cook , "Gustavo A. R. Silva" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-hardening@vger.kernel.org, devicetree@vger.kernel.org References: <20260724-camss-isp-ope-v5-0-e70ad4fa39ce@oss.qualcomm.com> <20260724-camss-isp-ope-v5-3-e70ad4fa39ce@oss.qualcomm.com> <77f79a27-6a19-4879-b302-e7b42faaaced@oss.qualcomm.com> Content-Language: en-US From: "Gjorgji Rosikopulos (Consultant)" In-Reply-To: <77f79a27-6a19-4879-b302-e7b42faaaced@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: 82egKTdcu4R7XN2WoxLPLdZ3WpbNMqR_ X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI5MDE0MiBTYWx0ZWRfX0gcUUA7EFMoQ usZ9HgdqJLTxpSt7kFY0WOJv9OIY9+UdTsFlso/zYeCOGfhWlRbyNDl0y2FB5Wpvk/PUYQLDkBm JL94tPOZnaMbrMVlAb2pW+JBd++gs/o= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI5MDE0MiBTYWx0ZWRfX8tIzAyHpz4zT Sv/c2ls7q8ymCGmVDuDvcHfVeiHpZY6LWPh2fhSjJd7XThL6ZRJx71T9hipEKfNJMKlab4+30Rm tUVL5fqdYUuA1+MmKGlGXbE1HrAfUPhbM6/a50LsDsS/egzJoPlha8QnQqsOWwscaHC0O9eztpP OGSwqVde9LIgDoLw8qiFCfPGY5nJbq1+aDmrH8n7mqem+0hsOCsO7xpVpwxERu0pzZNsuUi+7VH WlPAebvoZKUrgAkeVfQmcxEFgZ34OMnIEEhrsw1gnRmbTYuFV2N2VxGmJ/u0cg8fUsgVAyNkOox JDmvpb/cz7kVnTejjYop//0i7DUKoCexIfvVFhPEFFSNIqF5a9zsM+4ILbEGYoVI9zMi4dxYqGQ ulOIpum5wHIS9QYH6TfNatEzferHxN5fILT1l1uFOziRNhk2Nskoe4ASmp3VNXuM71ZG+2x4mKD aqQULfQzQjSNuojjTcQ== X-Proofpoint-GUID: 82egKTdcu4R7XN2WoxLPLdZ3WpbNMqR_ X-Authority-Analysis: v=2.4 cv=Bo+tB4X5 c=1 sm=1 tr=0 ts=6a6a46f6 cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=Q/e3f29T3Hw2hnAEzBPF7w==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=YAyIRdgMAAAA:8 a=EUspDBNiAAAA:8 a=Yqt9_RdanuqypNOcg2YA:9 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 a=o1rO4XtwZBNj6n05oSJ_:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-29_07,2026-07-29_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 bulkscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607290142 Hi Loic, Hans, On 7/29/2026 4:27 PM, johannes.goede@oss.qualcomm.com wrote: > Hi Loic, et.al, > > On 24-Jul-26 14:42, Loic Poulain wrote: >> Add the uapi header camss-ope-config.h defining the ISP parameter >> structures used by the CAMSS Offline Processing Engine (OPE) driver. >> This includes structures for white balance, chroma enhancement and >> color correction configuration. >> >> Signed-off-by: Loic Poulain >> --- >> include/uapi/linux/camss-ope-config.h | 160 ++++++++++++++++++++++++++++++++++ >> 1 file changed, 160 insertions(+) >> >> diff --git a/include/uapi/linux/camss-ope-config.h b/include/uapi/linux/camss-ope-config.h >> new file mode 100644 >> index 0000000000000000000000000000000000000000..800e6ef1dba218ca33b565e1e51d6647f02f8753 >> --- /dev/null >> +++ b/include/uapi/linux/camss-ope-config.h >> @@ -0,0 +1,160 @@ >> +/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ >> +/* >> + * Qualcomm CAMSS Offline Processing Engine (OPE) ISP parameters UAPI >> + * >> + * Uses the generic V4L2 extensible ISP parameters buffer format defined in >> + * . >> + * >> + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. >> + */ >> + >> +#ifndef _UAPI_LINUX_CAMSS_OPE_CONFIG_H >> +#define _UAPI_LINUX_CAMSS_OPE_CONFIG_H >> + >> +#include >> +#include >> + >> +/** >> + * enum camss_ope_params_block_type - CAMSS ISP parameter block identifiers >> + * >> + * Each value identifies one ISP processing block. The value is placed in >> + * the @type field of &struct v4l2_isp_params_block_header. >> + */ >> +enum camss_ope_params_block_type { >> + CAMSS_OPE_PARAMS_WB_GAIN = 1, >> + CAMSS_OPE_PARAMS_CHROMA_ENHAN = 2, >> + CAMSS_OPE_PARAMS_COLOR_CORRECT = 3, >> +}; > > I don't think we want this enum to be OPE specific. The whole idea behind > the extensible ISP parameters is that there is a single set of parameter > definitions spanning multiple ISP generations. > > There is going to be a mirroring patch for libcamera defining some C++ > magic around this header: > > https://patchwork.libcamera.org/patch/27430/ > > and this will be used in the camss libcamera IPA and we don't want to > have one version of the libcamera wrapper per ISP "generation". > > So I think this should all be moved back to a generic camss-config.h > (or maybe camss-parameters.h ?) and then if for the planned Hamoa / > Monoca inline ISP work of we need say a new version of CAMSS_PARAMS_WB_GAIN > just add a CAMSS_OPE_PARAMS_WB_GAIN_V2 for that. > > That is the whole idea behind the extensible params, otherwise libcamera > will effectively need to have 1 IPA per ISP generation / type which is > not what we want. Can we change the name of the header to not be OPE specific. An proposal will be camss-config.h, i believe most of the parameters will be the same for other ISP versions. ~Gjorgji