[igt-dev] [PATCH i-g-t 0/2] tools/intel_gpu_top: Fix Device selection issues

Ayaz A Siddiqui ayaz.siddiqui at intel.com
Fri Oct 23 17:51:56 UTC 2020


There was two issues identified during intel_gpu_top testing.
1. In case of multiple discrete GPU platform,  if first card is not
intel card then execution  failed with error. To solve this issue a check for
intel device (8086) is added during device selection.
2. Intel_gpu_top was failing to execute if device selection filter was other than
“pci”. intel_gpu_top requires card information and PCI_SLOT_NAME for dGPU.
Only pci subsystem contains both information.
In case of user filter is other than pci subsystem then we need card
information of associated pci subsystem which is stored as parent of
requested card if available.

Ayaz A Siddiqui (2):
  lib/igt_device_scan:Add function to get pci subsystem of requested
    card
  lib/igt_device_scan: Select intel as default vendor for intel_gpu_top

 lib/igt_device_scan.c | 95 +++++++++++++++++++++++++++----------------
 lib/igt_device_scan.h |  2 +
 tools/intel_gpu_top.c |  2 +-
 3 files changed, 64 insertions(+), 35 deletions(-)

-- 
2.26.2



More information about the igt-dev mailing list