summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-07-25 15:35:44 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-07-26 09:10:57 +0300
commitba1ed201a28120e3832ce0a35df1b2cb806b2a34 (patch)
tree6620e977dfda8bc527761c69aee2a932c26616ee
parent31fc989fc86b6d18a65d1fe4932c497dd4bab76e (diff)
tests/kms_hdmi_inject: Unset all crtcs before the test
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@linux.intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105595 Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Simon Ser <simon.ser@intel.com>
-rw-r--r--tests/kms_hdmi_inject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c
index 78684241..3da1028c 100644
--- a/tests/kms_hdmi_inject.c
+++ b/tests/kms_hdmi_inject.c
@@ -203,6 +203,8 @@ igt_main
connector = get_connector(drm_fd, res);
igt_require(connector);
+
+ kmstest_unset_all_crtcs(drm_fd, res);
}
igt_describe("Make sure that 4K modes exposed by DRM match the "