[igt-dev] [PATCH i-g-t] tests/feature_discovery: detect mst configuration

Swati Sharma swati2.sharma at intel.com
Fri Aug 25 17:15:26 UTC 2023


Add test to detect if we have mst configuration.

Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 tests/feature_discovery.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/feature_discovery.c b/tests/feature_discovery.c
index d1f4b1633..738719e16 100644
--- a/tests/feature_discovery.c
+++ b/tests/feature_discovery.c
@@ -113,5 +113,17 @@ igt_main {
 		igt_subtest("psr2") {
 			igt_require(psr_sink_support(fd, debugfs_fd, PSR_MODE_2));
 		}
+
+		igt_describe("Make sure that we have DP-MST configuration.");
+		igt_subtest("dp-mst") {
+			igt_output_t *output;
+			enum pipe pipe;
+			int ret;
+			for_each_valid_output_on_pipe(&display, pipe, output) {
+				igt_output_set_pipe(output, pipe);
+				ret = igt_check_output_is_dp_mst(output);
+			}
+			igt_require( ret !=0 );
+		}
 	}
 }
-- 
2.25.1



More information about the igt-dev mailing list