drm/i915/selftests: Show the pstate limits on any failure to reset min
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@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200420203040.8984-1-chris@chris-wilson.co.uk
This commit is contained in:
parent
007ff34e61
commit
74f103928d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue