drm/i915/selftests: Verify frequency scaling with RPS
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Apr 2020 17:27:34 +0000 (18:27 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Apr 2020 19:08:06 +0000 (20:08 +0100)
commit4ba74e53ada3c7cca9808d0c1332d34133f06575
treef2ad9e5c18760ca93091f6353d152e6ab49ea4be
parentf0617ff0b89416d5e15e14c22489ae3013d343fa
drm/i915/selftests: Verify frequency scaling with RPS

One of the core tenents of reclocking the GPU is that its throughput
scales with the clock frequency. We can observe this by incrementing a
loop counter on the GPU, and compare the different execution rates at
the notional RPS frequencies.

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/20200420172739.11620-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_gt_pm.c
drivers/gpu/drm/i915/gt/selftest_rps.c
drivers/gpu/drm/i915/gt/selftest_rps.h