[Intel-gfx] [PATCH] drm/i915/selftests: Show the pstate limits on any failure to reset min

Mika Kuoppala mika.kuoppala at linux.intel.com
Tue Apr 21 08:28:41 UTC 2020


Chris Wilson <chris at chris-wilson.co.uk> writes:

> We want to see the pstate limits whenever we fail to set the minimum
> frequency as that may help for debugging.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

Reviewed-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>

> ---
>  drivers/gpu/drm/i915/gt/selftest_rps.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/gt/selftest_rps.c b/drivers/gpu/drm/i915/gt/selftest_rps.c
> index d7cd673550ef..e0a791eac752 100644
> --- a/drivers/gpu/drm/i915/gt/selftest_rps.c
> +++ b/drivers/gpu/drm/i915/gt/selftest_rps.c
> @@ -238,6 +238,7 @@ int live_rps_control(void *arg)
>  			pr_err("%s: could not set minimum frequency [%x], only %x!\n",
>  			       engine->name, rps->min_freq, read_cagf(rps));
>  			igt_spinner_end(&spin);
> +			show_pstate_limits(rps);
>  			err = -EINVAL;
>  			break;
>  		}
> @@ -278,6 +279,7 @@ int live_rps_control(void *arg)
>  		if (limit == rps->min_freq) {
>  			pr_err("%s: GPU throttled to minimum!\n",
>  			       engine->name);
> +			show_pstate_limits(rps);
>  			err = -ENODEV;
>  			break;
>  		}
> -- 
> 2.20.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx


More information about the Intel-gfx mailing list