[igt-dev] [PATCH i-g-t 2/4] tests/kms_hdmi_inject: Unset all crtcs before the test
Arkadiusz Hiler
arkadiusz.hiler at intel.com
Thu Jul 25 12:35:44 UTC 2019
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>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
tests/kms_hdmi_inject.c | 2 ++
1 file changed, 2 insertions(+)
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 "
--
2.21.0
More information about the igt-dev
mailing list