[igt-dev] [PATCH i-g-t 4/5] tests/i915_pm_lpsp: screens-disabled subtest use igt_wait

Anshuman Gupta anshuman.gupta at intel.com
Thu Mar 12 13:56:41 UTC 2020


Some times delayed audio codec disabling causes failure
of test, using igt_wait to check lpsp after disabling all screen.

Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
 tests/i915/i915_pm_lpsp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/i915_pm_lpsp.c b/tests/i915/i915_pm_lpsp.c
index 972f6feb..3e8d7568 100644
--- a/tests/i915/i915_pm_lpsp.c
+++ b/tests/i915/i915_pm_lpsp.c
@@ -83,7 +83,7 @@ static void screens_disabled_subtest(data_t *data, drmModeResPtr drm_res)
 	kmstest_unset_all_crtcs(data->drm_fd, drm_res);
 	for_each_connected_output(&data->display, output) {
 		data->output = output;
-		igt_assert(lpsp_is_enabled(data));
+		igt_assert(igt_wait(lpsp_is_enabled(data), 1000, 100));
 	}
 }
 
-- 
2.25.1



More information about the igt-dev mailing list