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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do not assert failure if PC8 state achieved with display enabled.

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

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);
 	}
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux