All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeevan B <jeevan.b@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kunal1.joshi@intel.com, Jeevan B <jeevan.b@intel.com>,
	Swati Sharma <swati2.sharma@intel.com>
Subject: [PATCH i-g-t 3/4] tests/kms_display_modes: Skip test if joiner display is connected
Date: Wed,  4 Dec 2024 11:39:23 +0530	[thread overview]
Message-ID: <20241204060924.1155970-4-jeevan.b@intel.com> (raw)
In-Reply-To: <20241204060924.1155970-1-jeevan.b@intel.com>

High-resolution displays that support joiner modes can cause extended mode
tests to fail. This commit introduces a check to skip these tests if a
joiner mode display is connected, ensuring the test suite runs smoothly
without unnecessary failures.

v2: Add output name in skip message.
v3: Update logic.

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

diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
index f1d8ab03d..e41c60cc0 100644
--- a/tests/kms_display_modes.c
+++ b/tests/kms_display_modes.c
@@ -232,6 +232,12 @@ static void run_extendedmode_test(data_t *data) {
 
 	for_each_pipe(display, pipe1) {
 		for_each_valid_output_on_pipe(display, pipe1, output1) {
+
+			if (is_joiner_mode(data->drm_fd, output1)) {
+				igt_info("Skipping joiner output %s", output1->name);
+				continue;
+			}
+
 			for_each_pipe(display, pipe2) {
 				if (pipe1 == pipe2)
 					continue;
@@ -318,6 +324,10 @@ igt_main
 		igt_display_require_output(&data.display);
 
 		for_each_connected_output(&data.display, output) {
+			if (is_joiner_mode(data.drm_fd, output)) {
+				igt_info("Skipping joiner output %s", output->name);
+				continue;
+			}
 			data.mst_output[count++] = output;
 			if (output_is_dp_mst(&data, output, dp_mst_outputs))
 				dp_mst_outputs++;
-- 
2.25.1


  parent reply	other threads:[~2024-12-04  5:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-04  6:09 [PATCH i-g-t 0/4] Skip test if joiner display is connected Jeevan B
2024-12-04  6:09 ` [PATCH i-g-t 1/4] lib/igt_kms: Add is_joiner_mode function Jeevan B
2024-12-04  6:09 ` [PATCH i-g-t 2/4] tests/kms_async_flips: Skip async flips on joiner output Jeevan B
2024-12-04  6:09 ` Jeevan B [this message]
2024-12-04  6:09 ` [PATCH i-g-t 4/4] lib/igt_kms: Add 6k resolution support for a single CRTC Jeevan B
2024-12-04  7:40 ` ✓ i915.CI.BAT: success for Skip test if joiner display is connected (rev6) Patchwork
2024-12-04  9:13 ` ✗ Xe.CI.BAT: failure " Patchwork
2024-12-04  9:14   ` B, Jeevan
2024-12-04  9:17 ` ✗ i915.CI.Full: " Patchwork
2024-12-04 10:08 ` ✗ Xe.CI.Full: " Patchwork
2024-12-09 14:36 ` ✓ i915.CI.Full: success " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2024-11-29  4:27 [PATCH i-g-t 0/4] Skip test if joiner display is connected Jeevan B
2024-11-29  4:27 ` [PATCH i-g-t 3/4] tests/kms_display_modes: " Jeevan B
2024-11-27  8:13 [PATCH i-g-t 0/4] " Jeevan B
2024-11-27  8:13 ` [PATCH i-g-t 3/4] tests/kms_display_modes: " Jeevan B

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241204060924.1155970-4-jeevan.b@intel.com \
    --to=jeevan.b@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kunal1.joshi@intel.com \
    --cc=swati2.sharma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.