[PATCH] tests/kms_vrr: Avoid race between freeing display reseources

Mitul Golani mitulkumar.ajitkumar.golani at intel.com
Sat Aug 31 05:58:45 UTC 2024


While freeing display resources, that schedules driver to execute
panel power off, which races while scheduling next immediate test.
Giving time after freeing resources allows driver to avoid race
between next non blocking atomic commit and panel power off from
previous test.
---
 tests/kms_vrr.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index 36a22eebe..481a4253f 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -1110,5 +1110,7 @@ igt_main_args("drs:", long_opts, help_str, opt_handler, &data)
 	igt_fixture {
 		igt_display_fini(&data.display);
 		drm_close_driver(data.drm_fd);
+		//Wait for 2 seconds to free-up acquired display resources
+		sleep(2);
 	}
 }
-- 
2.46.0



More information about the igt-dev mailing list