[igt-dev] [PATCH i-g-t 0/2] Fix for device detection issues with intel gpu top
Ayaz A Siddiqui
ayaz.siddiqui at intel.com
Thu Sep 3 11:01:08 UTC 2020
Intel_gpu_top device selection filters for drm subsystem were not working as
expected. intel_gpu_top relies on PCI_SLOT_NAME to select correct PMU paths
for dgpu, in case of drm subsystem this property is not present which leads
to fall back to igpu if present otherwise it was throwing below error.
Failed to detect engines! (No such file or directory)
(Kernel 4.16 or newer is required for i915 PMU support.)
The fix of this issue is to use parent of drm subsystem to get PCI_SLOT_NAME.
There was another issue in default GPU selection, search logic was relying
on the first discrete drm device. In case of non-intel drm device is present
prior to intel gpu then it was being selected which leads to error in pmu data.
The default search will now search for the first intel discrete gpu device
Ayaz A Siddiqui (2):
lib/igt_device_scan: Fix device selection filter
lib/igt_device_scan: Select intel as default vendor for intel_gpu_top
lib/igt_device_scan.c | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
--
2.26.2
More information about the igt-dev
mailing list