summaryrefslogtreecommitdiff
path: root/tools/intel_reg_checker.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-07-06 13:01:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-07-26 23:31:12 +0100
commit4a6dcd837e9e742c139dfbdfd50a0134a2c8cae3 (patch)
tree5bda2177dd8142aacdeafda73f5c7b64be0f38ff /tools/intel_reg_checker.c
parent3efebcb90417c294d1b2041e590e2b146670dec4 (diff)
tools: Use the gt number stored in the device info
Don't use the encoded information within the PCI-ID for the GT value, as the rules keep changing. Use the device info instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tools/intel_reg_checker.c')
-rw-r--r--tools/intel_reg_checker.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/intel_reg_checker.c b/tools/intel_reg_checker.c
index 3f90de82..2aefabc6 100644
--- a/tools/intel_reg_checker.c
+++ b/tools/intel_reg_checker.c
@@ -143,6 +143,11 @@ check_gfx_mode(void)
check_perf_bit(gfx_mode, 13, "Flush TLB Invalidation Mode", true);
}
+static unsigned intel_gt(uint16_t __devid)
+{
+ return intel_get_device_info(__devid)->gt;
+}
+
static void
check_gt_mode(void)
{