[igt-dev] [PATCH i-g-t 4/6] i915/i915_pm_rpm: gem-execbuf-stress-pc8 use powetop

Anshuman Gupta anshuman.gupta at intel.com
Wed Dec 9 16:06:40 UTC 2020


We require to auto-tune powertop before checking Package
C state. Invoke "powertop --auto-tune" before checking
PC8 residencies.

Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
 tests/i915/i915_pm_rpm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index 34ec9a6d..d284fa54 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -1391,8 +1391,10 @@ static void gem_execbuf_stress_subtest(int rounds, int wait_flags)
 
 	igt_require_gem(drm_fd);
 
-	if (wait_flags & WAIT_PC8_RES)
+	if (wait_flags & WAIT_PC8_RES) {
 		igt_require(has_pc8);
+		igt_require(setup_powertop());
+	}
 
 	i = 0;
 	batch_buf[i++] = MI_NOOP;
-- 
2.26.2



More information about the igt-dev mailing list