[igt-dev] [PATCH i-g-t 0/2] Fix for device detection issues with intel gpu top

Petri Latvala petri.latvala at intel.com
Thu Sep 3 11:29:31 UTC 2020


On Thu, Sep 03, 2020 at 04:31:08PM +0530, Ayaz A Siddiqui wrote:
> 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(-)


Series is

Reviewed-by: Petri Latvala <petri.latvala at intel.com>


More information about the igt-dev mailing list