Do not assert failure if PC8 state achieved with display enabled.
Signed-off-by: Anshuman Gupta <[email protected]>
---
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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx