[igt-dev] [PATCH i-g-t 2/2] tests/pm_rpm: Enable modeset-pc8-residency-stress for ICL and GEN9.
Anshuman Gupta
anshuman.gupta at intel.com
Thu Feb 21 17:07:58 UTC 2019
Do not assert failure if PC8 state achieved with display enabled.
Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
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
More information about the igt-dev
mailing list