[i-g-t 4/5] lib/igt_kms: Force "edid_override" to NULL on exit

Bhanuprakash Modem bhanuprakash.modem at intel.com
Tue Aug 13 12:06:17 UTC 2024


Force "edid_override" to NULL on each connector on exit.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 lib/igt_kms.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index b7c9d430d..c9f09c524 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -3410,8 +3410,11 @@ void igt_display_fini(igt_display_t *display)
 	for (i = 0; i < display->n_pipes; i++)
 		igt_pipe_fini(&display->pipes[i]);
 
-	for (i = 0; i < display->n_outputs; i++)
+	for (i = 0; i < display->n_outputs; i++) {
+		kmstest_force_edid(display->drm_fd, (&display->outputs[i])->config.connector, NULL);
 		igt_output_fini(&display->outputs[i]);
+	}
+
 	free(display->outputs);
 	display->outputs = NULL;
 	free(display->pipes);
-- 
2.43.2



More information about the igt-dev mailing list