drm/i915/selftests: Move gpu energy measurement into its own little lib
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Apr 2020 15:20:17 +0000 (16:20 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Apr 2020 17:48:51 +0000 (18:48 +0100)
commitd4e3d455a12e9d7d151f35f86b688bdff5dcd076
tree53152577e7c3dcb016320bd2a3d5b74e6001a618
parent680e1af713d92940e39a313a8592b13a6885a14c
drm/i915/selftests: Move gpu energy measurement into its own little lib

Move the handy utility to measure the GPU energy consumption using RAPL
msr into a common lib so that it can be reused easily.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200417152018.13079-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gt/selftest_rc6.c
drivers/gpu/drm/i915/selftests/librapl.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/librapl.h [new file with mode: 0644]