From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
To: Nas Chung <nas.chung@chipsnmedia.com>,
Frank Li <Frank.li@oss.nxp.com>,
Detlev Casanova <detlev.casanova@collabora.com>
Cc: "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: Mon, 23 Nov 2026 15:25:43 -0500 [thread overview]
Message-ID: <8624fb6a39e5e13466882f01ea54842252f154af.camel@collabora.com> (raw)
In-Reply-To: <SL2P216MB244104B49860D6D6B3A92821FB452@SL2P216MB2441.KORP216.PROD.OUTLOOK.COM>
[-- Attachment #1: Type: text/plain, Size: 2168 bytes --]
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).
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.
Nicolas
>
> Thanks.
> Nas.
>
> >
> > Frank
> >
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-11-23 20:25 UTC|newest]
Thread overview: 26+ 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 [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=8624fb6a39e5e13466882f01ea54842252f154af.camel@collabora.com \
--to=nicolas.dufresne@collabora.com \
--cc=Frank.Li@nxp.com \
--cc=Frank.li@oss.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=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®