drm/i915/selftests: Show the pstate limits on any failure to reset min
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Apr 2020 20:30:40 +0000 (21:30 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Apr 2020 08:39:35 +0000 (09:39 +0100)
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
drivers/gpu/drm/i915/gt/selftest_rps.c

index d7cd673..e0a791e 100644 (file)
@@ -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;
                }