All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/3] gputop: Support accel devices
@ 2026-11-21  9:41 Gyeyoung Baek
  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
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gyeyoung Baek @ 2026-11-21  9:41 UTC (permalink / raw)
  To: igt-dev; +Cc: Kamil Konieczny, Tvrtko Ursulin

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-21  9:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21  9:41 [PATCH i-g-t 0/3] gputop: Support accel devices Gyeyoung Baek
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

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.