[igt-dev] [PATCH i-g-t v2] tests/kms_invalid_mode: Avoid usage of same pipe on multiple outputs

Nidhi Gupta nidhi1.gupta at intel.com
Mon Jul 18 09:32:40 UTC 2022


Sanitize the system state before starting the subtest.

Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/6435
Fixes: 6725767a8410 (tests/kms_invalid_mode: Test Cleanup)
Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
 tests/kms_invalid_mode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_invalid_mode.c b/tests/kms_invalid_mode.c
index 21ee91ab..0ae98a31 100644
--- a/tests/kms_invalid_mode.c
+++ b/tests/kms_invalid_mode.c
@@ -185,6 +185,7 @@ test_output(data_t *data)
 	int ret;
 	drmModeModeInfo *mode;
 
+	igt_display_reset(&data->display);
 	igt_output_set_pipe(output, data->pipe);
 
 	igt_create_fb(data->drm_fd, 512, 512, DRM_FORMAT_XRGB8888,
@@ -202,7 +203,6 @@ test_output(data_t *data)
 	igt_remove_fb(data->drm_fd, &fb);
 	igt_output_override_mode(output, NULL);
 	/*unset_all_crtcs*/
-	igt_display_reset(&data->display);
 	igt_display_commit(&data->display);
 }
 
-- 
2.26.2



More information about the igt-dev mailing list