Skip to content

RFC User friendly lsgpu/intel_gpu_top device listing

Tvrtko Ursulin igt-dev intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5intel_gpu_top: User friendly device listinglib/igt_device_scan.c lib/igt_device_scan.h tools/intel_gpu_top.c+100 -130 replies
2/5lsgpu: User friendly device listingtools/lsgpu.c+8 -20 replies
3/5lib/igt_device_scan: Remember PCI card index after scanninglib/igt_device_scan.c+36 -74 replies
4/5lsgpu: Add filter type print-out selectionlib/igt_device_scan.c lib/igt_device_scan.h tools/intel_gpu_top.c +1 more+106 -300 replies
5/5intel_gpu_top: Default GPU list to PCI modetools/intel_gpu_top.c+2 -10 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchZbigniew Kempczyński
1/5R-b
2/5R-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [igt-dev] [RFC i-g-t 0/5] User friendly lsgpu/intel_gpu_top device listing

From: Tvrtko Ursulin <[email protected]>

Please see individual path commit messages for details, but essentially I implemented this:

$ sudo tools/lsgpu
card1                   8086:4905    drm:/dev/dri/card1
└─renderD129                         drm:/dev/dri/renderD129
card0                   8086:3E98    drm:/dev/dri/card0
└─renderD128                         drm:/dev/dri/renderD128
$ sudo tools/lsgpu --pci
card1                   8086:4905    pci:vendor=8086,device=4905,card=0
└─renderD129
card0                   8086:3E98    pci:vendor=8086,device=3E98,card=0
└─renderD128
$ sudo tools/lsgpu --sysfs
card1                   8086:4905    sys:/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:01.0/0000:03:00.0
└─renderD129                         sys:/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:01.0/0000:03:00.0/drm/renderD129
card0                   8086:3E98    sys:/sys/devices/pci0000:00/0000:00:02.0
└─renderD128                         sys:/sys/devices/pci0000:00/0000:00:02.0/drm/renderD128

I need to find a machine with two GPUs of the same device id to finish testing this hence still RFC.

Tvrtko Ursulin (5):
intel_gpu_top: User friendly device listing
lsgpu: User friendly device listing lib/igt_device_scan: Remember PCI card index after scanning
lsgpu: Add filter type print-out selection
intel_gpu_top: Default GPU list to PCI mode

 lib/igt_device_scan.c | 205 +++++++++++++++++++++++++++++++++++++-----
 lib/igt_device_scan.h |  16 +++-
 tools/intel_gpu_top.c |   8 +-
 tools/lsgpu.c         |  38 ++++++--
 4 files changed, 233 insertions(+), 34 deletions(-)
Signature · 6 lines
2.25.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev