[i-g-t, v9, 1/3] tests/intel/pm_rc6_residency: Ensure that SLPC is enabled for test rc6-idle
Sk Anirban
sk.anirban at intel.com
Thu Jun 5 20:20:26 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.
Signed-off-by: Sk Anirban <sk.anirban at intel.com>
---
tests/intel/i915_pm_rc6_residency.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/intel/i915_pm_rc6_residency.c b/tests/intel/i915_pm_rc6_residency.c
index d3fa95423..337f63e34 100644
--- a/tests/intel/i915_pm_rc6_residency.c
+++ b/tests/intel/i915_pm_rc6_residency.c
@@ -617,6 +617,9 @@ igt_main
igt_require_gem(i915);
gem_quiescent_gpu(i915);
+ igt_require_f(gem_using_guc_submission(i915) &&
+ 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