[igt-dev] [PATCH i-g-t 05/15] perf_pmu: Use correct pmu config for multi-tile
Umesh Nerlige Ramappa
umesh.nerlige.ramappa at intel.com
Sat May 13 02:22:24 UTC 2023
From: Riana Tauro <riana.tauro at intel.com>
Use the correct perf_pmu config for actual and requested frequency in
multi-tile frequency test.
Signed-off-by: Riana Tauro <riana.tauro at intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
---
tests/i915/perf_pmu.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/i915/perf_pmu.c b/tests/i915/perf_pmu.c
index 38bdee650..4f4a616eb 100644
--- a/tests/i915/perf_pmu.c
+++ b/tests/i915/perf_pmu.c
@@ -1601,8 +1601,8 @@ test_frequency(int gem_fd, unsigned int gt)
igt_require(max_freq > min_freq);
igt_require(boost_freq > min_freq);
- fd[0] = open_group(gem_fd, I915_PMU_REQUESTED_FREQUENCY, -1);
- fd[1] = open_group(gem_fd, I915_PMU_ACTUAL_FREQUENCY, fd[0]);
+ fd[0] = open_group(gem_fd, __I915_PMU_REQUESTED_FREQUENCY(gt), -1);
+ fd[1] = open_group(gem_fd, __I915_PMU_ACTUAL_FREQUENCY(gt), fd[0]);
/*
* Set GPU to min frequency and read PMU counters.
@@ -1695,8 +1695,8 @@ test_frequency_idle(int gem_fd, unsigned int gt)
/* While parked, our convention is to report the GPU at 0Hz */
- fd[0] = open_group(gem_fd, I915_PMU_REQUESTED_FREQUENCY, -1);
- fd[1] = open_group(gem_fd, I915_PMU_ACTUAL_FREQUENCY, fd[0]);
+ fd[0] = open_group(gem_fd, __I915_PMU_REQUESTED_FREQUENCY(gt), -1);
+ fd[1] = open_group(gem_fd, __I915_PMU_ACTUAL_FREQUENCY(gt), fd[0]);
gem_quiescent_gpu(gem_fd); /* Be idle! */
measured_usleep(2000); /* Wait for timers to cease */
--
2.36.1
More information about the igt-dev
mailing list