]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita744f3ab28f3e8a289b41349c930e0bd95008a78
tree9c4d96ca7ac49bd965d835ceb53a5cfea000acdf
parentb983d6f8c3dad7839dd2aef30ad42817a8a0221c
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