Bug 109545

Summary: intel_gt(dev_id) function returns wrong gt size on some device IDs
Product: DRI Reporter: andrey.orlov
Component: IGTAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: high    
Version: XOrg git   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description andrey.orlov 2019-02-04 13:55:41 UTC
I've built "perf" test tool from the intel_gpu_tools and started it on two systems:

SKL-GT4(0x193B):

root@nnt-sklnuc-andreyor:/msdk/intel-gpu-tools/installed_build/libexec/igt-gpu-tools# ./perf
IGT-Version: 1.23-gcb6610f5 (x86_64) (Linux: 4.19.5 x86_64)
Starting subtest: i915-ref-count
init_sys_info function
SKYLAKE intel_gt(devid) = 3
Subtest i915-ref-count: SUCCESS (0,083s)

CFL-GT2(0x3E91):

root@nnt-cfl03:/msdk/WORKER/exec_dir# ./perf
IGT-Version: 1.23-gcb6610f5 (x86_64) (Linux: 4.19.5 x86_64)
Starting subtest: i915-ref-count
init_sys_info function
COFFEELAKE intel_gt(devid) = 9
Test requirement not met in function test_i915_ref_count, file perf.c:4053:
Test requirement: init_sys_info()
Subtest i915-ref-count: SKIP (0.000s)

So, on CFL-GT2(device_id = 0x3E91): intel_gt(devid) = 9.
Comment 1 Lionel Landwerlin 2019-02-04 14:15:32 UTC
There is proposed fix for this issue, feel free to pick it up and revive the discussion on the mailing list.

*** This bug has been marked as a duplicate of bug 101740 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.