public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Loic Poulain <loic.poulain@oss.qualcomm.com>
Cc: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
	Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Kees Cook <kees@kernel.org>,
	"Gustavo A. R. Silva" <gustavoars@kernel.org>,
	Bryan O'Donoghue <bod@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	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, kieran.bingham@ideasonboard.com
Subject: Re: [PATCH v2 12/14] media: uapi: Add CAMSS ISP configuration definition
Date: Mon, 27 Apr 2026 23:25:23 +0300	[thread overview]
Message-ID: <20260427202523.GE3219146@killaraus.ideasonboard.com> (raw)
In-Reply-To: <CAFEp6-20MzQh55iJzyhn=htFZxN1yq9o+EJJAX0CWG3O6_KSyA@mail.gmail.com>

On Mon, Apr 27, 2026 at 10:08:59PM +0200, Loic Poulain wrote:
> On Mon, Apr 27, 2026 at 2:56 PM Konrad Dybcio wrote:
> > On 4/27/26 2:43 PM, Loic Poulain wrote:
> > > Add the uapi header camss-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 <loic.poulain@oss.qualcomm.com>
> > > ---
> >
> > [...]
> >
> >
> > > +/**
> > > + * struct camss_params_wb_gain - White Balance gains
> > > + *
> > > + * @header:   generic block header; @header.type = CAMSS_PARAMS_WB_GAIN
> > > + * @g_gain:   green channel gain (15uQ10)
> > > + * @b_gain:   blue channel gain (15uQ10)
> > > + * @r_gain:   red channel gain (15uQ10)
> > > + */
> > > +struct camss_params_wb_gain {
> > > +     struct v4l2_isp_params_block_header header;
> > > +     __u16 g_gain;
> > > +     __u16 b_gain;
> > > +     __u16 r_gain;
> > > +     __u16 _pad;
> > > +} __attribute__((aligned(8)));
> >
> > Should this be __le for all of the related types?
> 
> At the moment, this is purely a UAPI, the values are not dumped
> directly to hardware as-is. Instead, each field is translated into one
> or more register writes, with the appropriate math, masking and
> shifting applied. Adding explicit endianness in the definition would
> therefore require special handling on both user and kernel side
> (to_le16, from_le16).
> 
> On the other side, there are scenarios, such as platforms that rely on
> ICP (firmware-driven processing), where we may want to forward these
> structures directly within an HFI packet to the ICP MCU. In that
> context, explicitly defining the endianness could make some sense...

Would those be different structures, or do you envision that someone
could develop an ICP firmware that understands these structures ?

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2026-04-27 20:25 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-27 12:43 [PATCH v2 00/14] media: qcom: camss: CAMSS Offline Processing Engine support Loic Poulain
2026-04-27 12:43 ` [PATCH v2 01/14] media: qcom: camss: Add support to populate sub-devices Loic Poulain
2026-04-28  6:43   ` Krzysztof Kozlowski
2026-04-28 11:41     ` Loic Poulain
2026-04-27 12:43 ` [PATCH v2 02/14] media: qcom: camss: Add PM clock support and integrate with runtime PM Loic Poulain
2026-04-27 14:04   ` Konrad Dybcio
2026-04-27 12:43 ` [PATCH v2 03/14] media: qcom: camss: Add PM clock definitions for QCM2290 Loic Poulain
2026-04-27 12:43 ` [PATCH v2 04/14] media: qcom: camss: Drop top_ahb/axi from QCM2290 subdevice clocks Loic Poulain
2026-04-27 12:43 ` [PATCH v2 05/14] media: qcom: camss: Add camss-isp-bufq helper Loic Poulain
2026-04-28  6:46   ` Krzysztof Kozlowski
2026-04-28  6:56   ` Bryan O'Donoghue
2026-04-28 11:29     ` Loic Poulain
2026-04-27 12:43 ` [PATCH v2 06/14] media: qcom: camss: Add camss-isp-sched helper Loic Poulain
2026-04-27 12:43 ` [PATCH v2 07/14] media: qcom: camss: Add camss-isp-pipeline helper Loic Poulain
2026-04-27 12:43 ` [PATCH v2 08/14] media: qcom-camss: Add image formats for Qualcomm CAMSS parameters buffer Loic Poulain
2026-04-27 12:43 ` [PATCH v2 09/14] media: qcom: camss: Add camss-isp-params helper Loic Poulain
2026-04-27 12:43 ` [PATCH v2 10/14] dt-bindings: media: qcom: Add CAMSS Offline Processing Engine (OPE) Loic Poulain
2026-04-27 14:22   ` Konrad Dybcio
2026-04-27 20:33     ` Loic Poulain
2026-04-28 10:15       ` Konrad Dybcio
2026-04-28  6:31   ` Krzysztof Kozlowski
2026-04-27 12:43 ` [PATCH v2 11/14] dt-bindings: media: qcom,qcm2290-camss: Add OPE ISP subnode Loic Poulain
2026-04-28  6:35   ` Krzysztof Kozlowski
2026-04-28  9:50     ` Konrad Dybcio
2026-04-28  9:54       ` Krzysztof Kozlowski
2026-04-27 12:43 ` [PATCH v2 12/14] media: uapi: Add CAMSS ISP configuration definition Loic Poulain
2026-04-27 12:56   ` Konrad Dybcio
2026-04-27 20:08     ` Loic Poulain
2026-04-27 20:25       ` Laurent Pinchart [this message]
2026-04-27 21:01         ` Loic Poulain
2026-04-27 21:57   ` Bryan O'Donoghue
2026-04-27 12:43 ` [PATCH v2 13/14] media: qcom: camss: Add CAMSS Offline Processing Engine driver Loic Poulain
2026-04-27 12:43 ` [PATCH v2 14/14] arm64: dts: qcom: agatti: Add OPE node Loic Poulain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260427202523.GE3219146@killaraus.ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=andersson@kernel.org \
    --cc=bod@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gustavoars@kernel.org \
    --cc=kees@kernel.org \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=mchehab@kernel.org \
    --cc=robh@kernel.org \
    --cc=vladimir.zapolskiy@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox