[i-g-t, v9, 1/3] tests/intel/pm_rc6_residency: Ensure that SLPC is enabled for test rc6-idle

Riana Tauro riana.tauro at intel.com
Thu Jun 12 05:32:05 UTC 2025


Hi Anirban

On 6/6/2025 1:50 AM, 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.
> 
> 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");

you can only have slpc check, guc check is not necessary

Thanks
Riana

>   
>   		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