]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9aa034948a87145487fa75c96723b707edfd2e3b
tree53152577e7c3dcb016320bd2a3d5b74e6001a618
parentc6b1f382d50c46d6ccfd0f9517a470506c9a28e6
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]