[igt-dev] [PATCH i-g-t 1/4] tests/kms_3d: Unset all crtcs before the test

Ville Syrjala ville.syrjala at linux.intel.com
Wed Nov 7 17:39:22 UTC 2018


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

On pre-HSW we have separate encoders for the DP and HDMI ports,
but both can't be enabled at the same time. The test fails to
account for that and can thus fail when the kernel rejects
the modeset. We can avoid that by turning off all the ports
beforehand.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/kms_3d.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_3d.c b/tests/kms_3d.c
index df8185abebc4..5aeb5dd11e6b 100644
--- a/tests/kms_3d.c
+++ b/tests/kms_3d.c
@@ -57,6 +57,8 @@ igt_simple_main
 	}
 	igt_require(connector);
 
+	kmstest_unset_all_crtcs(drm_fd, res);
+
 	kmstest_edid_add_3d(igt_kms_get_base_edid(), EDID_LENGTH, &edid,
 			    &length);
 
-- 
2.18.1



More information about the igt-dev mailing list