drm/i915/selftests: Refactor RC6 power measurement and error handling
authorSk Anirban <sk.anirban@intel.com>
Thu, 27 Mar 2025 19:19:24 +0000 (00:49 +0530)
committerAnshuman Gupta <anshuman.gupta@intel.com>
Fri, 28 Mar 2025 09:03:32 +0000 (14:33 +0530)
commitc235b03145b97b8eb94af03e99740833e20c955d
treeec1e2a4aac3f3e6a139d6ddd329e0b16ef51c155
parent0a4ae87706c6d15d14648e428c3a76351f823e48
drm/i915/selftests: Refactor RC6 power measurement and error handling

Revise the power measurement logic to save and evaluate energy values.
Previously, the test only checked whether the system had entered the RC6
state, without considering any potential interruptions in that state.
This update introduces a threshold check to ensure that the GPU remains
in the RC6 state properly during the specified sleep duration.

v3:
  - Reorder threshold check (Badal)

v4:
  - Improved commit message (Anshuman)

v5:
  - Rename variables for improved readability (Anshuman)

Signed-off-by: Sk Anirban <sk.anirban@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://lore.kernel.org/r/20250327191924.4131598-1-sk.anirban@intel.com
drivers/gpu/drm/i915/gt/selftest_rc6.c