diff mbox series

[i-g-t,2/2] tests/pm_rpm: Enable modeset-pc8-residency-stress for ICL and GEN9.

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

Commit Message

Gupta, Anshuman Feb. 21, 2019, 5:07 p.m. UTC
Do not assert failure if PC8 state achieved with display enabled.

Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
---
 tests/pm_rpm.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index c84f199..878b63b 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -846,8 +846,13 @@  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)
-			igt_assert(!pc8_plus_residency_changed(5));
+		if (wait_flags & WAIT_PC8_RES) {
+			if (IS_HASWELL(ms_data.devid) &&
+				IS_BROADWELL(ms_data.devid))
+				igt_assert(!pc8_plus_residency_changed(5));
+			else
+				igt_assert(pc8_plus_residency_changed(5));
+		}
 		if (wait_flags & WAIT_EXTRA)
 			sleep(5);
 	}