From: Tvrtko Ursulin <tursulin@ursulin.net>
To: Sidong Yang <sidong.yang@furiosa.ai>
Cc: "Maíra Canal" <mcanal@igalia.com>,
"Tomeu Vizoso" <tomeu@tomeuvizoso.net>,
"Oded Gabbay" <ogabbay@kernel.org>,
"Gyeyoung Baek" <gye976@gmail.com>,
"Philipp Stanner" <phasta@kernel.org>,
"Danilo Krummrich" <dakr@kernel.org>,
dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4] accel/rocket: Report NPU usage through fdinfo
Date: Thu, 12 Nov 2026 13:46:37 +0000 [thread overview]
Message-ID: <fc21d057-be4a-4cea-ab92-0951c4eb7de2@ursulin.net> (raw)
In-Reply-To: <au31m2jC9SmQ6iZh@rock-5b-plus>
On 06/11/2026 15:44, Sidong Yang wrote:
> On Thu, Nov 05, 2026 at 11:04:29AM +0000, Tvrtko Ursulin wrote:
>> It would just be adding u64 drm_sched_entity_get_runtime(entity).
>> Nothing else would need to be exported and the implementation simply
>> locks entity->stats and returns the runtime. As long as the caller knows
>> they haven't destroyed the entity it is safe since entity holds a
>> reference to the stats object.
>
> Thanks for the suggestion. If Philipp and Danilo are fine with it, may I
> add drm_sched_entity_get_runtime() and switch rocket to it in v5?
I am neither Philipp nor Danilo but I would say go for it.
Regards,
Tvrtko
next prev parent reply other threads:[~2026-11-12 13:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 15:53 Sidong Yang
2026-11-05 3:22 ` Gyeyoung Baek
2026-11-05 6:58 ` Tomeu Vizoso
2026-11-05 9:22 ` Tvrtko Ursulin
2026-11-05 10:43 ` Maíra Canal
2026-11-05 11:04 ` Tvrtko Ursulin
2026-11-05 11:07 ` Maíra Canal
2026-11-06 15:44 ` Sidong Yang
2026-11-12 13:46 ` Tvrtko Ursulin [this message]
2026-11-12 16:57 ` 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=fc21d057-be4a-4cea-ab92-0951c4eb7de2@ursulin.net \
--to=tursulin@ursulin.net \
--cc=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gye976@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcanal@igalia.com \
--cc=ogabbay@kernel.org \
--cc=phasta@kernel.org \
--cc=sidong.yang@furiosa.ai \
--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®