[PATCH i-g-t v3 0/4] Add single engine busyness stats in GPUTOP
Soham Purkait
soham.purkait at intel.com
Fri Feb 28 14:18:06 UTC 2025
Add single engine busyness support in GPUTOP. This uses
the PMU interface to display the busyness of each
engine instances.
This patch refactors GPUTOP to be vendor-agnostic,
laying the groundwork for future support of multiple
GPU vendors.
Currently, GPUTOP supports GPUs with Xe driver only and can
monitor the engine busyness of multiple GPU devices
simultaneously through abstracting vendor-specific code
into a common interface and implementing vendor-neutral
APIs for monitoring.
DRIVER: xe || SLOT: 0000:00:02.0
ENGINES BUSY
Render/3D/0 | 96.5% ███████████████████████████████████████ |
Blitter/0 | 91.6% █████████████████████████████████████ |
Video/0 | 56.2% ███████████████████████████ |
VideoEnhance/0| 97.7% ████████████████████████████████████████|
Compute/0 | 48.5% ███████████████████████ |
Soham Purkait (4):
lib/igt_device_scan: Enable finding all IGT devices for xe driver
tools/gputop/common_gputop: Add gputop functionality common to all drivers
tools/gputop/xe_gputop: Add gputop support for xe specific devices
tools/gputop: Enable support for multiple GPUs and instances
lib/igt_device_scan.c | 97 +++++++++
lib/igt_device_scan.h | 3 +
tools/gputop/common_gputop.c | 79 +++++++
tools/gputop/common_gputop.h | 58 +++++
tools/{ => gputop}/gputop.c | 203 ++++++++++++++----
tools/gputop/meson.build | 6 +
tools/gputop/xe_gputop.c | 404 +++++++++++++++++++++++++++++++++++
tools/gputop/xe_gputop.h | 74 +++++++
tools/meson.build | 6 +-
9 files changed, 881 insertions(+), 49 deletions(-)
create mode 100644 tools/gputop/common_gputop.c
create mode 100644 tools/gputop/common_gputop.h
rename tools/{ => gputop}/gputop.c (71%)
create mode 100644 tools/gputop/meson.build
create mode 100644 tools/gputop/xe_gputop.c
create mode 100644 tools/gputop/xe_gputop.h
--
2.34.1
More information about the igt-dev
mailing list