From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id B292D10E16F for ; Sat, 26 Aug 2023 05:05:43 +0000 (UTC) From: Swati Sharma To: igt-dev@lists.freedesktop.org Date: Sat, 26 Aug 2023 10:35:38 +0530 Message-Id: <20230826050538.1184370-1-swati2.sharma@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t] tests/feature_discovery: detect mst configuration List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Add test to detect if we have mst configuration. Signed-off-by: Swati Sharma --- 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