drm/i915/selftests: Only query RAPL for integrated power measurements
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 12 Apr 2021 09:05:09 +0000 (10:05 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 20 Apr 2021 09:49:05 +0000 (10:49 +0100)
commita36a47490d8e911f0f12521359a8e018bb3fcfb6
tree9c4d96ca7ac49bd965d835ceb53a5cfea000acdf
parentf44b733e865ae963324e488866a257224e09c85c
drm/i915/selftests: Only query RAPL for integrated power measurements

RAPL provides an on-package power measurements which does not encompass
discrete graphics, so let's avoid using the igfx masurements when testing
dgfx. Later we will abstract the simple librapl interface over hwmon so
that we can verify basic power consumption scenarios.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210412090526.30547-3-matthew.auld@intel.com
drivers/gpu/drm/i915/gt/selftest_rc6.c
drivers/gpu/drm/i915/gt/selftest_rps.c
drivers/gpu/drm/i915/selftests/librapl.c
drivers/gpu/drm/i915/selftests/librapl.h