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

Arkadiusz Hiler
2019-07-25T12:36:17Z

From: Ville Syrjälä <ville.syrjala@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.

v2: rebased (Arek)

Cc: Simon Ser <simon.ser@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@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 8ade6d34..aed3bee3 100644
--- a/tests/kms_3d.c
+++ b/tests/kms_3d.c
@@ -56,6 +56,8 @@ igt_simple_main
}
igt_require(connector);

+ kmstest_unset_all_crtcs(drm_fd, res);
+
edid = igt_kms_get_3d_edid();

kmstest_force_edid(drm_fd, connector, edid);
--
2.21.0