[i-g-t, v2, 3/3] tests/intel/pm_rc6_residency: Ensure that SLPC is enabled for test rc6-idle
Riana Tauro
riana.tauro at intel.com
Tue Jun 17 14:29:37 UTC 2025
On 6/17/2025 12:15 PM, Sk Anirban wrote:
> 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>
Looks good to me
Reviewed-by: Riana Tauro <riana.tauro 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);
More information about the igt-dev
mailing list