[Intel-gfx] [RFC i-g-t] intel_gpu_top: User friendly device listing

Chris Wilson chris at chris-wilson.co.uk
Wed Oct 14 11:05:26 UTC 2020


Quoting Tvrtko Ursulin (2020-10-14 11:48:53)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> Adding a new device selection print type suitable for user-facing
> use cases like intel_gpu_top -L and potentially lsgpu.
> 
> Instead of:
> 
> sys:/sys/devices/pci0000:00/0000:00:02.0/drm/card0
>     subsystem       : drm
>     drm card        : /dev/dri/card0
>     parent          : sys:/sys/devices/pci0000:00/0000:00:02.0
> 
> sys:/sys/devices/pci0000:00/0000:00:02.0/drm/renderD128
>     subsystem       : drm
>     drm render      : /dev/dri/renderD128
>     parent          : sys:/sys/devices/pci0000:00/0000:00:02.0
> 
> sys:/sys/devices/pci0000:00/0000:00:02.0
>     subsystem       : pci
>     drm card        : /dev/dri/card0
>     drm render      : /dev/dri/renderD128
>     vendor          : 8086
>     device          : 193B
> 
> New format looks like:
> 
> card0                   8086:193B    drm:/dev/dri/card0
> └─renderD128                         drm:/dev/dri/renderD128
> 
> Advantages are more compact, more readable, one entry per GPU, shorter
> string to copy and paste to intel_gpu_top -d, or respective usage.

Could you present this as the typical commands and output? I think you
mean the first as the output of intel_gpu_top -L. What exactly do we now
feed to -d?
-Chris


More information about the Intel-gfx mailing list