From: Sidong Yang <sidong.yang@furiosa.ai>
To: Gyeyoung Baek <gye976@gmail.com>
Cc: Tomeu Vizoso <tomeu@tomeuvizoso.net>,
Oded Gabbay <ogabbay@kernel.org>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] accel/rocket: Report per-core engine usage through fdinfo
Date: Tue, 3 Nov 2026 19:43:20 +0900 [thread overview]
Message-ID: <aum6YsBrHFp29gQA@rock-5b-plus> (raw)
In-Reply-To: <CAKbEznv0ApgORxJO8BQY+XeDC94dqHz3GmdojwV7E7bdOCwo4Q@mail.gmail.com>
On Tue, Nov 03, 2026 at 07:14:14PM +0900, Gyeyoung Baek wrote:
> Hi Sidong,
>
> > +
> > static int
> > rocket_open(struct drm_device *dev, struct drm_file *file)
> > {
> > @@ -86,10 +107,19 @@ rocket_open(struct drm_device *dev, struct drm_file *file)
> > }
> >
> > rocket_priv->rdev = rdev;
> > +
> > + rocket_priv->engine_usage = kzalloc_flex(*rocket_priv->engine_usage,
> > + elapsed_ns, rdev->max_cores);
> > + if (!rocket_priv->engine_usage) {
> > + ret = -ENOMEM;
> > + goto err_free;
> > + }
> > + kref_init(&rocket_priv->engine_usage->kref);
>
> How about moving these lines into a rocket_engine_usage_create() helper, to pair
> with rocket_engine_usage_destroy()?
Sure, I'll make it for v3.
Thanks,
Sidong
>
> Otherwise LGTM. Tested on RK3588 (ROCK 5B) with KASAN: the OOB from v1 no
> longer reproduces, and drm-engine-npu* times are accounted as expected
> while running benchmark_model with teflon.
>
> Reviewed-by: Gyeyoung Baek <gye976@gmail.com>
> Tested-by: Gyeyoung Baek <gye976@gmail.com>
>
> --
> Thanks,
> Gyeyoung
next prev parent reply other threads:[~2026-11-03 10:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-01 15:27 Sidong Yang
2026-11-03 10:14 ` Gyeyoung Baek
2026-11-03 10:43 ` Sidong Yang [this message]
2026-11-03 10:51 ` Tomeu Vizoso
2026-11-03 14:46 ` Sidong Yang
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=aum6YsBrHFp29gQA@rock-5b-plus \
--to=sidong.yang@furiosa.ai \
--cc=dri-devel@lists.freedesktop.org \
--cc=gye976@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ogabbay@kernel.org \
--cc=tomeu@tomeuvizoso.net \
/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®