Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/chamelium/kms_chamelium_color: force connector reprobe after plugging ports
@ 2025-01-15 15:15 Kunal Joshi
  2025-01-16  4:10 ` ✗ Xe.CI.BAT: failure for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Kunal Joshi @ 2025-01-15 15:15 UTC (permalink / raw)
  To: igt-dev; +Cc: Kunal Joshi

Force reprobe connector status after plugging to assure
we always have DRM_MODE_CONNECTED status for the connector
before proceding with the test.

Fixes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2371
Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com>
---
 tests/chamelium/kms_chamelium_color.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/chamelium/kms_chamelium_color.c b/tests/chamelium/kms_chamelium_color.c
index 5550cec22..7c88c022c 100644
--- a/tests/chamelium/kms_chamelium_color.c
+++ b/tests/chamelium/kms_chamelium_color.c
@@ -749,8 +749,13 @@ igt_main
 		 * discovered ports, just incase they are not plugged
 		 * we currently skip in test_setup
 		 */
-		for( i = 0; i < data.port_count; i++)
+		for (i = 0; i < data.port_count; i++) {
 			chamelium_plug(data.chamelium, data.ports[i]);
+			igt_assert_f(chamelium_reprobe_connector(&data.display,
+								 data.chamelium,
+								 data.ports[i]) == DRM_MODE_CONNECTED,
+								 "Output not connected\n");
+		}
 
 		kmstest_set_vt_graphics_mode();
 	}
-- 
2.25.1


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

end of thread, other threads:[~2025-01-17  9:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 15:15 [PATCH] tests/chamelium/kms_chamelium_color: force connector reprobe after plugging ports Kunal Joshi
2025-01-16  4:10 ` ✗ Xe.CI.BAT: failure for " Patchwork
2025-01-16  4:14 ` ✓ i915.CI.BAT: success " Patchwork
2025-01-16  7:42 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-16 10:39 ` [PATCH] " Sharma, Swati2
2025-01-16 11:22   ` Sharma, Swati2
2025-01-17  9:21 ` ✗ i915.CI.Full: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox