The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Antoine Bouyer <antoine.bouyer@nxp.com>
To: "Jacopo Mondi" <jacopo.mondi@ideasonboard.com>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Daniel Scally" <dan.scally@ideasonboard.com>,
	"Keke Li" <keke.li@amlogic.com>,
	"Jai Luthra" <jai.luthra@ideasonboard.com>,
	"Niklas Söderlund" <niklas.soderlund@ragnatech.se>,
	"Ricardo Ribalda" <ribalda@chromium.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	Hans Verkuil <hverkuil+cisco@kernel.org>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/6] media: v4l2-isp: Add support for extensible statistics
Date: Tue, 12 May 2026 11:26:28 +0200	[thread overview]
Message-ID: <e1bb04b0-025a-44a6-91ab-edfa6edc1f64@nxp.com> (raw)
In-Reply-To: <777ea8b5-b00a-40e0-b649-59324ff0188a@nxp.com>

Le 05/05/2026 à 18:49, Antoine Bouyer a écrit :
> On 5/5/26 4:12 PM, Jacopo Mondi wrote:
>>
>>
>> This series breaks out from Antonie's
>> https://eur01.safelinks.protection.outlook.com/? 
>> url=https%3A%2F%2Fpatchwork.linuxtv.org%2Fproject%2Flinux- 
>> media%2Flist%2F%3Fseries%3D24043&data=05%7C02%7Cantoine.bouyer%40nxp.com%7Cd0e9f403856c4146996308deaab05cd1%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C639135871605732002%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=FXaz7QYQvS3s%2B4l9AFMrGgE7kmXlEil%2FKD6DibB0%2FJY%3D&reserved=0
>> the extensible stats support and adds a few more patches on top to:
>>
>> - add support for per-block validation as suggested during the review of
>>    Ricardo's
>>    https://eur01.safelinks.protection.outlook.com/? 
>> url=https%3A%2F%2Fpatchwork.linuxtv.org%2Fproject%2Flinux- 
>> media%2Fpatch%2F20260504-smatch-7-1-v3-6- 
>> fda125c30058%40chromium.org%2F&data=05%7C02%7Cantoine.bouyer%40nxp.com%7Cd0e9f403856c4146996308deaab05cd1%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C639135871605751612%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=AiRH8MhIbXt3dr%2B2r3I6STE6TJAChylnH%2Fz3tLdS36k%3D&reserved=0
>>
>> - add two helper functions to v4l2-isp to ease handling of extensible
>>    statistics for drivers. An early user, based on a preliminary version
>>    of the patches is available here as a reference:
>>    https://eur01.safelinks.protection.outlook.com/? 
>> url=https%3A%2F%2Fpatchwork.linuxtv.org%2Fproject%2Flinux- 
>> media%2Flist%2F%3Fseries%3D24703&data=05%7C02%7Cantoine.bouyer%40nxp.com%7Cd0e9f403856c4146996308deaab05cd1%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C639135871605763086%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2Fpsb7Z3lb8ingDILxc3LoEWKTojl5BGMbk6FiR%2FcO9I%3D&reserved=0
>>
>> Antonie: I took the liberty to fold in your patches changes to address
>> my comments on your v1. I pushed an un-squased version of the patches
>> here:
>> https://eur01.safelinks.protection.outlook.com/? 
>> url=https%3A%2F%2Fgitlab.freedesktop.org%2Flinux- 
>> media%2Fusers%2Fjmondi%2F-%2Ftree%2Fb4%2Fextensible-stats- 
>> unsquashed&data=05%7C02%7Cantoine.bouyer%40nxp.com%7Cd0e9f403856c4146996308deaab05cd1%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C639135871605775020%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=iF2BE0GZ8HcVPmOJDhbmLsXQDOXV9JvqfMK6DRPPvrg%3D&reserved=0
>> so you can easily get the diff from this and your version. Please feel
>> free to comment on these as you're the original author.
> 
> Hi Jacopo
> 
> Thanks for the rework and the links. I'm fine with your [SQUASH] commits.
> 
> If there are no other comments, I assume I can reuse the common patches 
> in my v2 then, and also apply the new helpers to neoisp driver changes. 
> They look very useful (especially to prevent out-of-bounds crashes I 
> observed when data_size was not set before filling stats :( ). I'll 
> check in your user example.
> 
> BR
> Antoine

Hi Jacopo

Do you think it would make sense to create a new generic V4L2_META_FMT 
too ? which can be used by all user of v4l2-isp extensible params a/o 
stats. To avoid each driver creating its own meta fmt with same purpose.

Or do you think it could have side effects ?

BR
Antoine

> 
>>
>> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
>> ---
>> Antoine Bouyer (2):
>>        media: uapi: v4l2-isp: Add extensible statistics
>>        media: Documentation: uapi: Update V4L2 ISP for extensible stats
>>
>> Jacopo Mondi (4):
>>        media: v4l2-isp: Rename v4l2_isp_params_buffer_size
>>        media: v4l2-isp: Add per-block validation callback
>>        media: amlogic-c3: Implement per-block validation
>>        media: v4l2-isp: Add helpers for stats buffer
>>
>>   Documentation/userspace-api/media/v4l/v4l2-isp.rst |  45 ++++++--
>>   .../media/platform/amlogic/c3/isp/c3-isp-params.c  |  42 ++++++-
>>   .../media/platform/arm/mali-c55/mali-c55-params.c  |  12 +-
>>   drivers/media/v4l2-core/v4l2-isp.c                 |  56 +++++++++
>>   include/media/v4l2-isp.h                           |  94 +++++++++++ 
>> ++---
>>   include/uapi/linux/media/v4l2-isp.h                | 125 +++++++++++ 
>> ++--------
>>   6 files changed, 294 insertions(+), 80 deletions(-)
>> ---
>> base-commit: d9c8c4adf23d17549c0ec9c85b99d85a0ee6cf18
>> change-id: 20260504-extensible-stats-f2d6befcc1ce
>>
>> Best regards,
>> -- 
>> Jacopo Mondi <jacopo.mondi@ideasonboard.com>
>>
> 


      reply	other threads:[~2026-05-12  9:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-05 14:12 [PATCH 0/6] media: v4l2-isp: Add support for extensible statistics Jacopo Mondi
2026-05-05 14:12 ` [PATCH 1/6] media: uapi: v4l2-isp: Add " Jacopo Mondi
2026-05-05 14:12 ` [PATCH 2/6] media: Documentation: uapi: Update V4L2 ISP for extensible stats Jacopo Mondi
2026-05-05 14:12 ` [PATCH 3/6] media: v4l2-isp: Rename v4l2_isp_params_buffer_size Jacopo Mondi
2026-05-06  8:11   ` Antoine Bouyer
2026-05-06  8:35     ` Jacopo Mondi
2026-05-06  8:57       ` Antoine Bouyer
2026-05-05 14:12 ` [PATCH 4/6] media: v4l2-isp: Add per-block validation callback Jacopo Mondi
2026-05-05 14:12 ` [PATCH 5/6] media: amlogic-c3: Implement per-block validation Jacopo Mondi
2026-05-05 14:12 ` [PATCH 6/6] media: v4l2-isp: Add helpers for stats buffer Jacopo Mondi
2026-05-05 16:49 ` [PATCH 0/6] media: v4l2-isp: Add support for extensible statistics Antoine Bouyer
2026-05-12  9:26   ` Antoine Bouyer [this message]

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=e1bb04b0-025a-44a6-91ab-edfa6edc1f64@nxp.com \
    --to=antoine.bouyer@nxp.com \
    --cc=dan.scally@ideasonboard.com \
    --cc=hverkuil+cisco@kernel.org \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=jai.luthra@ideasonboard.com \
    --cc=keke.li@amlogic.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=niklas.soderlund@ragnatech.se \
    --cc=ribalda@chromium.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