drm/i915/guc/slpc: Add SLPC selftest live_slpc_power
authorRiana Tauro <riana.tauro@intel.com>
Fri, 23 Sep 2022 11:00:43 +0000 (16:30 +0530)
committerAnshuman Gupta <anshuman.gupta@intel.com>
Thu, 29 Sep 2022 07:04:49 +0000 (12:34 +0530)
commit59cfc750f537b973e17583ce8f14a913401a5ac0
tree83cc3168f8baf9fe57f99e3d20224b8266e6ea82
parentac4e8560248f8c33c11b96a05ad64cfd1eb39665
drm/i915/guc/slpc: Add SLPC selftest live_slpc_power

A fundamental assumption is that at lower frequencies,
not only do we run slower, but we save power compared to
higher frequencies.
live_slpc_power checks if running at low frequency saves power

v2: re-use code to measure power
    fixed cosmetic review comments (Vinay)

Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220923110043.789178-4-riana.tauro@intel.com
drivers/gpu/drm/i915/gt/selftest_slpc.c