[PATCH v8 09/11] media: chips-media: wave6: Add performance profiling

Nas Chung nas.chung at chipsnmedia.com
Tue Nov 24 22:06:05 PST 2026


Hi, Nicolas.

>-----Original Message-----
>From: Nicolas Dufresne <nicolas.dufresne at collabora.com>
>Sent: Tuesday, November 24, 2026 5:26 AM
>To: Nas Chung <nas.chung at chipsnmedia.com>; Frank Li <Frank.li at oss.nxp.com>;
>Detlev Casanova <detlev.casanova at collabora.com>
>Cc: mchehab at kernel.org; hverkuil at kernel.org; robh at kernel.org;
>krzk+dt at kernel.org; conor+dt at kernel.org; Frank.Li at nxp.com;
>s.hauer at pengutronix.de; linux-media at vger.kernel.org;
>devicetree at vger.kernel.org; linux-kernel at vger.kernel.org;
>imx at lists.linux.dev; linux-arm-kernel at lists.infradead.org;
>festevam at gmail.com; kernel at pengutronix.de; ming.qian at oss.nxp.com;
>marek.vasut at mailbox.org; jackson.lee <jackson.lee at chipsnmedia.com>;
>lafley.kim <lafley.kim at chipsnmedia.com>
>Subject: Re: [PATCH v8 09/11] media: chips-media: wave6: Add performance
>profiling
>
>Hi,
>
>Le lundi 23 novembre 2026 à 09:18 +0000, Nas Chung a écrit :
>> Hi, Frank.
>>
>> > -----Original Message-----
>> > From: Frank Li <Frank.li at oss.nxp.com>
>> > Sent: Friday, November 20, 2026 5:56 AM
>> > To: Nas Chung <nas.chung at chipsnmedia.com>
>> > Cc: mchehab at kernel.org; hverkuil at kernel.org; robh at kernel.org;
>> > krzk+dt at kernel.org; conor+dt at kernel.org; Frank.Li at nxp.com;
>> > s.hauer at pengutronix.de; linux-media at vger.kernel.org;
>> > devicetree at vger.kernel.org; linux-kernel at vger.kernel.org;
>> > imx at lists.linux.dev; linux-arm-kernel at lists.infradead.org;
>> > festevam at gmail.com; kernel at pengutronix.de;
>nicolas.dufresne at collabora.com;
>> > ming.qian at oss.nxp.com; marek.vasut at mailbox.org; jackson.lee
>> > <jackson.lee at chipsnmedia.com>; lafley.kim <lafley.kim at chipsnmedia.com>
>> > Subject: Re: [PATCH v8 09/11] media: chips-media: wave6: Add
>performance
>> > profiling
>> >
>> > On Thu, Nov 19, 2026 at 06:00:03PM +0900, Nas Chung wrote:
>> > > Add per-instance performance profiling to help identify whether a
>> > > throughput problem comes from the firmware or from the host side.
>> >
>> > why not register as perf interface?
>>
>> The numbers are kept per instance (per open file). Each instance has
>> its own fps, latency and min/max frame time, and they are updated each
>> time one of its frames is done.
>>
>> As far as I know, perf can only count per CPU or per task, and a device
>> PMU usually counts for the whole system. So perf would only show the
>> total of all instances, and we could not get the min/max frame time
>> from it.
>
>My preference would then go toward .fdinfo() then instead of custom debug
>fs. It
>gives the FD owner the right to see the statistics and not just root.
>Here's an
>example of in progress attempt. The idea is that some key would be
>generalized
>and documented and some other key would be driver specific (e.g. wave6-
>prefix).

Agreed, fdinfo fits better since the owner of the file handle can
read the statistics, not only root. Common keys would also let tools
like v4l2top read the same statistics across V4L2 drivers.

>
>https://lore.kernel.org/all/20260706-v4l2-add-fdinfo-v3-0-
>d556568cf38e at collabora.com/
>
>Then once we've upstream v4l2top, one can track the performance live, and
>you
>can even add driver specific metrics.

As V4L2 fdinfo is not merged yet, I'd like to keep the debugfs file
in the series for now. I'll follow the fdinfo series, and once it is
merged, I'll switch the statistics to fdinfo and drop the debugfs
output.

Thanks.
Nas.

>
>Nicolas
>
>>
>> Thanks.
>> Nas.
>>
>> >
>> > Frank
>> >


More information about the linux-arm-kernel mailing list