All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_display_modes: Skip this test on DP MST config
@ 2022-04-01 10:51 Jeevan B
  2022-04-01 11:07 ` Petri Latvala
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jeevan B @ 2022-04-01 10:51 UTC (permalink / raw)
  To: igt-dev

currently this test fails on dp-mst setup. so, with this fix
test will skip which is expected for extended mode test case.

Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
 tests/kms_display_modes.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
index eff30cbb..4701c3ef 100644
--- a/tests/kms_display_modes.c
+++ b/tests/kms_display_modes.c
@@ -135,6 +135,8 @@ igt_main
 	int valid_output = 0, i, j = 0;
 	igt_output_t *output;
 	int pipe[IGT_MAX_PIPES];
+	struct kmstest_connector_config config;
+	const char *encoder;
 
 	igt_fixture {
 		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
@@ -146,6 +148,11 @@ igt_main
 
 			if (valid_output > 1)
 				break;
+
+			kmstest_get_connector_config(data.drm_fd,
+						     output->config.connector->connector_id,
+						     -1, &config);
+			encoder = kmstest_encoder_type_str(config.encoder->encoder_type);
 		}
 
 		data.n_pipes = 0;
@@ -160,6 +167,10 @@ igt_main
 
 	igt_describe("Test for validating display extended mode with a pair of connected displays");
 	igt_subtest_with_dynamic("extended-mode-basic") {
+
+		if (strcmp(encoder, "DP MST") == 0)
+			igt_skip("Test dosen't support DP MST\n");
+
 		for (i = 0; i < data.n_pipes - 1; i++) {
 			igt_dynamic_f("pipe-%s%s", kmstest_pipe_name(pipe[i]),
 					kmstest_pipe_name(pipe[i+1]));
-- 
2.35.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-01 11:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-01 10:51 [igt-dev] [PATCH i-g-t] tests/kms_display_modes: Skip this test on DP MST config Jeevan B
2022-04-01 11:07 ` Petri Latvala
2022-04-01 11:08 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
2022-04-01 11:36 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.