From: Gyeyoung Baek <gye976@gmail.com>
To: igt-dev@lists.freedesktop.org
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Subject: [PATCH i-g-t 0/3] gputop: Support accel devices
Date: Sat, 21 Nov 2026 18:41:54 +0900 [thread overview]
Message-ID: <20261121094225.628262-1-gye976@gmail.com> (raw)
Make gputop show the clients of accel devices (/dev/accel/*) too.
Accel drivers print the same drm-usage-stats fdinfo as DRM drivers
through drm_show_fdinfo() in the DRM core, but igt_drm_clients only
scans DRM nodes (major 226), so they never show up in gputop.
- Patch 1 extends the client identifier from the minor to dev_t (no
functional change).
- Patch 2 also scans accel nodes (major 261).
- Patch 3 shows the device node and driver name in the client header
instead of "DRM minor N".
Tested on RK3588 (Rock 5B+) with panthor (GPU) and rocket (NPU) running
at the same time, on drm-misc-next plus the rocket fdinfo series [1]
(bars trimmed):
renderD128 (panthor)
PID MEM RSS panthor NAME
727 9M 9M 100.0% gpuload
accel0 (rocket)
PID MEM RSS npu NAME
724 23M 0B 14.7% benchmark_model
Not tested on Intel hardware (patch 1, Intel frequency sysfs path:
/sys/class/drm/cardN -> /sys/dev/char/<major>:<minor>).
[1] https://lore.kernel.org/all/20261120141225.789350-1-sidong.yang@furiosa.ai/
Gyeyoung Baek (3):
lib/igt_drm_clients: Track clients by dev_t instead of DRM minor
lib/igt_drm_clients: Also scan accel device nodes
tools/gputop: Show device node and driver name in client header
lib/igt_drm_clients.c | 41 ++++++++++-------
lib/igt_drm_clients.h | 4 +-
tools/gputop.c | 102 +++++++++++++++++++++++++-----------------
3 files changed, 88 insertions(+), 59 deletions(-)
--
2.43.0
next reply other threads:[~2026-11-21 9:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 9:41 Gyeyoung Baek [this message]
2026-11-21 9:41 ` [PATCH i-g-t 1/3] lib/igt_drm_clients: Track clients by dev_t instead of DRM minor Gyeyoung Baek
2026-11-21 9:41 ` [PATCH i-g-t 2/3] lib/igt_drm_clients: Also scan accel device nodes Gyeyoung Baek
2026-11-21 9:41 ` [PATCH i-g-t 3/3] tools/gputop: Show device node and driver name in client header Gyeyoung Baek
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=20261121094225.628262-1-gye976@gmail.com \
--to=gye976@gmail.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=tvrtko.ursulin@igalia.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.