From cebf7105af5eeaaf418200e8db1e489603cb4c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20W=C3=B3jcik?= Date: Sun, 3 Nov 2024 21:58:36 +0100 Subject: [PATCH] Support intel GPUs before Gen-6 (patch from upstream) --- src/linux/intel_gpu_top/intel_gpu_top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux/intel_gpu_top/intel_gpu_top.c b/src/linux/intel_gpu_top/intel_gpu_top.c index eae1a178..09504b84 100644 --- a/src/linux/intel_gpu_top/intel_gpu_top.c +++ b/src/linux/intel_gpu_top/intel_gpu_top.c @@ -492,7 +492,7 @@ static int get_num_gts(uint64_t type) errno = 0; for (cnt = 0; cnt < MAX_GTS; cnt++) { - fd = igt_perf_open(type, __I915_PMU_REQUESTED_FREQUENCY(cnt)); + fd = igt_perf_open(type, __I915_PMU_INTERRUPTS(cnt)); if (fd < 0) break;