From: Frank Li <Frank.li@oss.nxp.com>
To: Nas Chung <nas.chung@chipsnmedia.com>
Cc: Nicolas Dufresne <nicolas.dufresne@collabora.com>,
Detlev Casanova <detlev.casanova@collabora.com>,
"mchehab@kernel.org" <mchehab@kernel.org>,
"hverkuil@kernel.org" <hverkuil@kernel.org>,
"robh@kernel.org" <robh@kernel.org>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"Frank.Li@nxp.com" <Frank.Li@nxp.com>,
"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"imx@lists.linux.dev" <imx@lists.linux.dev>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"festevam@gmail.com" <festevam@gmail.com>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"ming.qian@oss.nxp.com" <ming.qian@oss.nxp.com>,
"marek.vasut@mailbox.org" <marek.vasut@mailbox.org>,
"jackson.lee" <jackson.lee@chipsnmedia.com>,
"lafley.kim" <lafley.kim@chipsnmedia.com>
Subject: Re: [PATCH v8 09/11] media: chips-media: wave6: Add performance profiling
Date: Wed, 25 Nov 2026 13:37:05 -0600 [thread overview]
Message-ID: <awc44XyssnfAyyjs@SMW015318> (raw)
In-Reply-To: <SL2P216MB244180F5C6B16CEA1CA94589FB432@SL2P216MB2441.KORP216.PROD.OUTLOOK.COM>
On Wed, Nov 25, 2026 at 06:06:05AM +0000, Nas Chung wrote:
> Hi, Nicolas.
>
> >-----Original Message-----
> >From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
> >Sent: Tuesday, November 24, 2026 5:26 AM
> >To: Nas Chung <nas.chung@chipsnmedia.com>; Frank Li <Frank.li@oss.nxp.com>;
> >Detlev Casanova <detlev.casanova@collabora.com>
> >Cc: mchehab@kernel.org; hverkuil@kernel.org; robh@kernel.org;
> >krzk+dt@kernel.org; conor+dt@kernel.org; Frank.Li@nxp.com;
> >s.hauer@pengutronix.de; linux-media@vger.kernel.org;
> >devicetree@vger.kernel.org; linux-kernel@vger.kernel.org;
> >imx@lists.linux.dev; linux-arm-kernel@lists.infradead.org;
> >festevam@gmail.com; kernel@pengutronix.de; ming.qian@oss.nxp.com;
> >marek.vasut@mailbox.org; jackson.lee <jackson.lee@chipsnmedia.com>;
> >lafley.kim <lafley.kim@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@oss.nxp.com>
> >> > Sent: Friday, November 20, 2026 5:56 AM
> >> > To: Nas Chung <nas.chung@chipsnmedia.com>
> >> > Cc: mchehab@kernel.org; hverkuil@kernel.org; robh@kernel.org;
> >> > krzk+dt@kernel.org; conor+dt@kernel.org; Frank.Li@nxp.com;
> >> > s.hauer@pengutronix.de; linux-media@vger.kernel.org;
> >> > devicetree@vger.kernel.org; linux-kernel@vger.kernel.org;
> >> > imx@lists.linux.dev; linux-arm-kernel@lists.infradead.org;
> >> > festevam@gmail.com; kernel@pengutronix.de;
> >nicolas.dufresne@collabora.com;
> >> > ming.qian@oss.nxp.com; marek.vasut@mailbox.org; jackson.lee
> >> > <jackson.lee@chipsnmedia.com>; lafley.kim <lafley.kim@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@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.
statistics is not credital part for function. It'd better skip statistics
information patch in series, and add it later after fdinfo merged.
Frank
>
> Thanks.
> Nas.
>
> >
> >Nicolas
> >
> >>
> >> Thanks.
> >> Nas.
> >>
> >> >
> >> > Frank
> >> >
next prev parent reply other threads:[~2026-11-25 19:37 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 8:59 [PATCH v8 00/11] Add support for Wave6 video codec driver Nas Chung
2026-11-19 8:59 ` [PATCH v8 01/11] dt-bindings: media: nxp: Add Wave6 video codec device Nas Chung
2026-11-19 8:59 ` [PATCH v8 02/11] media: chips-media: wave6: Add Wave6 control driver Nas Chung
2026-11-19 20:07 ` Frank Li
2026-11-20 8:58 ` Nas Chung
2026-11-23 21:13 ` Frank Li
2026-11-19 8:59 ` [PATCH v8 03/11] media: chips-media: wave6: Add Wave6 core driver Nas Chung
2026-11-19 20:27 ` Frank Li
2026-11-20 8:49 ` Nas Chung
2026-11-19 8:59 ` [PATCH v8 04/11] media: chips-media: wave6: Add Wave6 decoder firmware interface Nas Chung
2026-11-19 20:37 ` Frank Li
2026-11-20 8:35 ` Nas Chung
2026-11-19 8:59 ` [PATCH v8 05/11] media: chips-media: wave6: Add Wave6 m2m decoder Nas Chung
2026-11-19 9:00 ` [PATCH v8 06/11] media: chips-media: wave6: Add Wave6 encoder firmware interface Nas Chung
2026-11-19 9:00 ` [PATCH v8 07/11] media: chips-media: wave6: Add Wave6 m2m encoder Nas Chung
2026-11-19 9:00 ` [PATCH v8 08/11] media: chips-media: wave6: Add trace and debugfs Nas Chung
2026-11-19 9:00 ` [PATCH v8 09/11] media: chips-media: wave6: Add performance profiling Nas Chung
2026-11-19 20:56 ` Frank Li
2026-11-23 9:18 ` Nas Chung
2026-11-23 20:25 ` Nicolas Dufresne
2026-11-25 6:06 ` Nas Chung
2026-11-25 19:37 ` Frank Li [this message]
2026-11-19 9:00 ` [PATCH v8 10/11] media: chips-media: wave6: Add Wave6 thermal cooling device Nas Chung
2026-11-19 21:03 ` Frank Li
2026-11-20 4:34 ` Nas Chung
2026-11-19 9:00 ` [PATCH v8 11/11] arm64: dts: freescale: imx95: Add video codec node Nas Chung
2026-11-19 21:05 ` Frank Li
2026-11-20 4:32 ` Nas Chung
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=awc44XyssnfAyyjs@SMW015318 \
--to=frank.li@oss.nxp.com \
--cc=Frank.Li@nxp.com \
--cc=conor+dt@kernel.org \
--cc=detlev.casanova@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=hverkuil@kernel.org \
--cc=imx@lists.linux.dev \
--cc=jackson.lee@chipsnmedia.com \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=lafley.kim@chipsnmedia.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=marek.vasut@mailbox.org \
--cc=mchehab@kernel.org \
--cc=ming.qian@oss.nxp.com \
--cc=nas.chung@chipsnmedia.com \
--cc=nicolas.dufresne@collabora.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
/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
all inboxes | Powered by JetHome®