[igt-dev] [PATCH i-g-t 6/7] tests/i915/perf_pmu: Use correct pmu config for multi-tile
Umesh Nerlige Ramappa
umesh.nerlige.ramappa at intel.com
Thu Mar 30 00:36:55 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>
---
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 5185cd9a..af6de762 100644
--- a/tests/i915/perf_pmu.c
+++ b/tests/i915/perf_pmu.c
@@ -1670,8 +1670,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.
@@ -1764,8 +1764,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