drm/i915/selftests: Check power consumption at min/max frequencies
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Apr 2020 15:20:18 +0000 (16:20 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Apr 2020 17:48:51 +0000 (18:48 +0100)
commitc43dd6b4144aa8f27ff9a1c4872f6ab49a4ba3ec
treef3c02f209975c5809d37d6a03d579e7edca4deb0
parentd4e3d455a12e9d7d151f35f86b688bdff5dcd076
drm/i915/selftests: Check power consumption at min/max frequencies

A basic premise of RPS is that at lower frequencies, not only do we run
slower, but we save power compared to higher frequencies. For example,
when idle, we set the minimum frequency just in case there is some
residual current. Since the power curve should be a physical
relationship, if we find no power saving it's likely that we've broken
our frequency handling, so test!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200417152018.13079-2-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