drm/i915/selftest: Update the SLPC selftest
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>
Wed, 26 Apr 2023 00:39:42 +0000 (17:39 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 28 Apr 2023 16:59:54 +0000 (09:59 -0700)
commitc73bd1706c0cdb5627d312efdc656baf48e0247f
tree32f5186772232ad6cc7bed816571af8ad36d34cc
parent55f9720dbf23ed640a51ea5564c22305efa8a467
drm/i915/selftest: Update the SLPC selftest

Use the new efficient frequency toggling interface. Also
create a helper function to restore the frequencies after
the test is done.

v2: Restore max freq first and then min.

Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230426003942.1924347-2-vinay.belgaumkar@intel.com
drivers/gpu/drm/i915/gt/selftest_slpc.c