[i-g-t, v2, 3/3] tests/intel/pm_rc6_residency: Ensure that SLPC is enabled for test rc6-idle
Sk Anirban
sk.anirban at intel.com
Tue Jun 17 06:45:00 UTC 2025
The test currently utilizes sysfs to adjust the RPS minimum frequency
to RP0 in order to reach peak frequency. Therefore, skip the test on
older platforms where SLPC is not enabled.
v2: Remove guc check (Riana)
Signed-off-by: Sk Anirban <sk.anirban at intel.com>
---
tests/intel/i915_pm_rc6_residency.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/intel/i915_pm_rc6_residency.c b/tests/intel/i915_pm_rc6_residency.c
index d3fa95423..2236668ce 100644
--- a/tests/intel/i915_pm_rc6_residency.c
+++ b/tests/intel/i915_pm_rc6_residency.c
@@ -617,6 +617,8 @@ igt_main
igt_require_gem(i915);
gem_quiescent_gpu(i915);
+ igt_require_f(i915_is_slpc_enabled(i915),
+ "This test can only be conducted if SLPC is enabled\n");
s_dirfd = igt_sysfs_gt_open(i915, 0);
stash_min = get_freq(s_dirfd, RPS_MIN_FREQ_MHZ);
--
2.43.0
More information about the igt-dev
mailing list