Devicetree
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: Antoine Bouyer <antoine.bouyer@nxp.com>
Cc: julien.vuillaumier@nxp.com, alexi.birlinger@nxp.com,
	daniel.baluta@nxp.com, peng.fan@nxp.com, frank.li@nxp.com,
	jacopo.mondi@ideasonboard.com, laurent.pinchart@ideasonboard.com,
	mchehab@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, michael.riesch@collabora.com,
	anthony.mcgivern@arm.com, linux-media@vger.kernel.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	imx@lists.linux.dev, ai.luthra@ideasonboard.com,
	paul.elder@ideasonboard.com, geert@linux-m68k.org,
	sakari.ailus@linux.intel.com, hverkuil+cisco@kernel.org
Subject: Re: [PATCH v3 4/8] media: uapi: Add NXP NEOISP user interface header file
Date: Fri, 12 Jun 2026 13:31:07 -0500	[thread overview]
Message-ID: <aixQa13BHIWbT-q1@SMW015318> (raw)
In-Reply-To: <20260612132039.2089051-5-antoine.bouyer@nxp.com>

On Fri, Jun 12, 2026 at 03:20:35PM +0200, Antoine Bouyer wrote:
>
> Add user space api header file for meta data structures definitions.
>
> This header describes `parameters` buffer for the ISP blocks control by
> userspace, and `statistics` buffer for userspace and IPA handling.
>
> Both buffers use the newly introduced generic `v4l2_isp_buffer`
> definition, which behaves the same as the generic `v4l2_isp_params_buffer`
> already used by other ISP devices (rkisp1, mali-c55).
>
> Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
> ---
...
> + */
> +struct neoisp_hdr_decompress0_cfg_s {
> +       __u16 knee_point1;
> +       __u16 knee_point2;
> +       __u16 knee_point3;
> +       __u16 knee_point4;

Not sure why don't use __u16 knee_point[4] to make code clear and short?

> +       __u16 knee_offset0;
> +       __u16 knee_offset1;
> +       __u16 knee_offset2;
> +       __u16 knee_offset3;
> +       __u16 knee_offset4;
...
> + */
> +struct neoisp_ir_compress_cfg_s {
> +       __u8 ctrl_obpp;

do we need pad some data to align next __u32

> +       __u32 knee_point1_kneepoint;
> +       __u32 knee_point2_kneepoint;
> +       __u32 knee_point3_kneepoint;
> +       __u32 knee_point4_kneepoint;
> +       __u32 knee_offset0_offset;
> +       __u32 knee_offset1_offset;
> +       __u32 knee_offset2_offset;
> +       __u32 knee_offset3_offset;
> +       __u32 knee_offset4_offset;
> +       __u16 knee_ratio01_ratio0;
> +       __u16 knee_ratio01_ratio1;
> +       __u16 knee_ratio23_ratio2;
> +       __u16 knee_ratio23_ratio3;
> +       __u16 knee_ratio4_ratio4;
> +       __u16 knee_npoint0_kneepoint;
> +       __u16 knee_npoint1_kneepoint;
> +       __u16 knee_npoint2_kneepoint;
> +       __u16 knee_npoint3_kneepoint;
> +       __u16 knee_npoint4_kneepoint;
> +};
> +
...
> +struct neoisp_bnr_cfg_s {
> +       __u8 ctrl_debug;
> +       __u8 ctrl_obpp;
> +       __u8 ctrl_nhood;
> +       __u8 ypeak_peak_outsel;
> +       __u8 ypeak_peak_sel;
> +       __u16 ypeak_peak_low;
> +       __u16 ypeak_peak_high;
> +       __u32 yedge_th0_edge_th0;
> +       __u16 yedge_scale_scale;
> +       __u8 yedge_scale_shift;
> +       __u32 yedges_th0_edge_th0;
> +       __u16 yedges_scale_scale;
> +       __u8 yedges_scale_shift;
> +       __u32 yedgea_th0_edge_th0;
> +       __u16 yedgea_scale_scale;
> +       __u8 yedgea_scale_shift;
> +       __u32 yluma_x_th0_th;
> +       __u16 yluma_y_th_luma_y_th0;
> +       __u16 yluma_y_th_luma_y_th1;
> +       __u16 yluma_scale_scale;
> +       __u8 yluma_scale_shift;
> +       __u16 yalpha_gain_gain;
> +       __u16 yalpha_gain_offset;
> +       __u8 cpeak_peak_outsel;
> +       __u8 cpeak_peak_sel;
> +       __u16 cpeak_peak_low;
> +       __u16 cpeak_peak_high;
> +       __u32 cedge_th0_edge_th0;
> +       __u16 cedge_scale_scale;
> +       __u8 cedge_scale_shift;
> +       __u32 cedges_th0_edge_th0;
> +       __u16 cedges_scale_scale;
> +       __u8 cedges_scale_shift;
> +       __u32 cedgea_th0_edge_th0;
> +       __u16 cedgea_scale_scale;
> +       __u8 cedgea_scale_shift;
> +       __u32 cluma_x_th0_th;
> +       __u16 cluma_y_th_luma_y_th0;
> +       __u16 cluma_y_th_luma_y_th1;
> +       __u16 cluma_scale_scale;
> +       __u8 cluma_scale_shift;
> +       __u16 calpha_gain_gain;
> +       __u16 calpha_gain_offset;
> +       __u16 stretch_gain;
> +};

Does have data alginment problem if use difference compiler? User APP
may difference compiler and compiler options.


  parent reply	other threads:[~2026-06-12 18:31 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-12 13:20 [PATCH v3 0/8] media: Add iMX95 neoisp driver Antoine Bouyer
2026-06-12 13:20 ` [PATCH v3 1/8] dt-bindings: media: Add nxp neoisp support Antoine Bouyer
2026-06-12 15:39   ` Frank Li
2026-06-12 13:20 ` [PATCH v3 2/8] media: v4l2-ctrls: Add user control base for NXP neoisp controls Antoine Bouyer
2026-06-12 16:52   ` Frank Li
2026-06-12 13:20 ` [PATCH v3 3/8] media: Add meta formats supported by NXP neoisp driver Antoine Bouyer
2026-06-12 16:55   ` Frank Li
2026-06-12 13:20 ` [PATCH v3 4/8] media: uapi: Add NXP NEOISP user interface header file Antoine Bouyer
2026-06-12 13:34   ` sashiko-bot
2026-06-12 18:31   ` Frank Li [this message]
2026-06-12 13:20 ` [PATCH v3 5/8] media: Documentation: Add NXP neoisp driver documentation Antoine Bouyer
2026-06-12 13:20 ` [PATCH v3 6/8] media: platform: Add NXP Neoisp Image Signal Processor Antoine Bouyer
2026-06-12 13:41   ` sashiko-bot
2026-06-12 19:25   ` Frank Li
2026-06-12 13:20 ` [PATCH v3 7/8] media: platform: neoisp: Add debugfs support Antoine Bouyer
2026-06-12 13:34   ` sashiko-bot
2026-06-12 16:49   ` Frank Li
2026-06-12 13:20 ` [PATCH v3 8/8] arm64: dts: freescale: imx95: Add NXP neoisp device tree node Antoine Bouyer

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=aixQa13BHIWbT-q1@SMW015318 \
    --to=frank.li@oss.nxp.com \
    --cc=ai.luthra@ideasonboard.com \
    --cc=alexi.birlinger@nxp.com \
    --cc=anthony.mcgivern@arm.com \
    --cc=antoine.bouyer@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel.baluta@nxp.com \
    --cc=devicetree@vger.kernel.org \
    --cc=frank.li@nxp.com \
    --cc=geert@linux-m68k.org \
    --cc=hverkuil+cisco@kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=julien.vuillaumier@nxp.com \
    --cc=krzk+dt@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=michael.riesch@collabora.com \
    --cc=paul.elder@ideasonboard.com \
    --cc=peng.fan@nxp.com \
    --cc=robh@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    /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