@@ -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);
}
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(-)