Introduced pc8_needs_screen_off flag in order to differentiate
between HASWELL/BROADWEEL and AT_LEAST_GEN9. GEN9 onwards
PC8+ residency does't require display to be turned on.

Signed-off-by: Anshuman Gupta <[email protected]>
---
 tests/i915/i915_pm_rpm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index af7a5d0..cd891db 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -902,7 +902,7 @@ 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)
+               if (wait_flags & WAIT_PC8_RES && ms_data.pc8_needs_screen_off)
                        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

Reply via email to