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

Swati Sharma swati2.sharma at intel.com
Sat Aug 26 05:05:38 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 | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/tests/feature_discovery.c b/tests/feature_discovery.c
index d1f4b1633..c160a51de 100644
--- a/tests/feature_discovery.c
+++ b/tests/feature_discovery.c
@@ -113,5 +113,19 @@ 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);
+				if (ret != 0)
+					break;
+			}
+			igt_require(ret != 0);
+		}
 	}
 }
-- 
2.25.1



More information about the igt-dev mailing list