[PATCH i-g-t] tests/gem_ctx_freq: Try to repro GL #6786

Ashutosh Dixit ashutosh.dixit at intel.com
Sat Nov 19 05:34:09 UTC 2022


Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
 tests/i915/gem_ctx_freq.c             | 7 ++++---
 tests/intel-ci/fast-feedback.testlist | 1 +
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/i915/gem_ctx_freq.c b/tests/i915/gem_ctx_freq.c
index a29fe68b72e..fbb91cf2aa5 100644
--- a/tests/i915/gem_ctx_freq.c
+++ b/tests/i915/gem_ctx_freq.c
@@ -143,7 +143,7 @@ static void sysfs_range(int i915)
 
 	for (int outer = 0; outer <= 2*N_STEPS; outer++) {
 		uint32_t sys_freq = frequencies[outer];
-		uint32_t cur, discard;
+		uint32_t cur, discard, req;
 
 		gem_quiescent_gpu(i915);
 		spin = igt_spin_new(i915, .ahnd = ahnd);
@@ -154,12 +154,13 @@ static void sysfs_range(int i915)
 
 		measured = measure_frequency(pmu, SAMPLE_PERIOD);
 		igt_debugfs_dump(i915, "i915_rps_boost_info");
+		req = igt_sysfs_get_u32(sysfs, "gt_cur_freq_mhz");
 
 		set_sysfs_freq(sys_min, sys_max);
 		__igt_spin_free_idle(i915, spin);
 
-		igt_info("sysfs: Measured %.1fMHz, expected %dMhz\n",
-			 measured, cur);
+		igt_info("sysfs: Measured %.1fMHz, expected %dMhz, req %dMhz\n",
+			 measured, cur, req);
 		pmu_assert(measured, cur);
 	}
 	gem_quiescent_gpu(i915);
diff --git a/tests/intel-ci/fast-feedback.testlist b/tests/intel-ci/fast-feedback.testlist
index a2bb37fb4ae..63c150e7e11 100644
--- a/tests/intel-ci/fast-feedback.testlist
+++ b/tests/intel-ci/fast-feedback.testlist
@@ -19,6 +19,7 @@ igt at gem_close_race@basic-threads
 igt at gem_ctx_create@basic
 igt at gem_ctx_create@basic-files
 igt at gem_ctx_exec@basic
+igt at gem_ctx_freq@sysfs
 igt at gem_exec_basic@basic
 igt at gem_exec_create@basic
 igt at gem_exec_fence@basic-busy
-- 
2.38.1



More information about the Intel-gfx-trybot mailing list