diff mbox series

[i-g-t,2/2] tests/i915/i915_pm_rpm: modeset-pc8-residency-stress

Message ID 1551874170-32222-3-git-send-email-anshuman.gupta@intel.com (mailing list archive)
State New, archived
Headers show
Series Enabling PC8+ residency for all GEN9+ platforms | expand

Commit Message

Gupta, Anshuman March 6, 2019, 12:09 p.m. UTC
Introduced pc8_needs_screen_off flag in order to differentiate
between HASWELL/BROADWEEL and AT_LEAST_GEN9. GEN9 onwards
PC8+ residency does't require display to be turned on.

Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
---
 tests/i915/i915_pm_rpm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index af7a5d0..cd891db 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -902,7 +902,7 @@  static void modeset_subtest(enum screen_type type, int rounds, int wait_flags)
 		igt_require(enable_one_screen_with_type(&ms_data, type));
 		if (wait_flags & WAIT_STATUS)
 			igt_assert(wait_for_active());
-		if (wait_flags & WAIT_PC8_RES)
+		if (wait_flags & WAIT_PC8_RES && ms_data.pc8_needs_screen_off)
 			igt_assert(!pc8_plus_residency_changed(5));
 		if (wait_flags & WAIT_EXTRA)
 			sleep(5);