Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/igt_chamelium: Wait for connectors after replugging them at exit
@ 2020-07-03  5:03 Kunal Joshi
  2020-07-03 13:38 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kunal Joshi @ 2020-07-03  5:03 UTC (permalink / raw)
  To: igt-dev; +Cc: Kunal Joshi

From: Imre Deak <imre.deak@intel.com>

Making sure all the plugged chamelium ports are connected at exit
So the FB console restore modeset doesn't happen on a disconnected output,
resulting in link training failures.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Tested-by: Kunal Joshi <kunal1.joshi@intel.com>
---
 lib/igt_chamelium.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c
index 58e01ab7..e8ead97a 100644
--- a/lib/igt_chamelium.c
+++ b/lib/igt_chamelium.c
@@ -2538,6 +2538,11 @@ void chamelium_deinit(struct chamelium *chamelium)
 	for (i = 0; i < chamelium->port_count; i++)
 		chamelium_plug(chamelium, &chamelium->ports[i]);
 
+	igt_assert(chamelium->drm_fd != -1);
+	for (i = 0; i < chamelium->port_count; i++)
+		wait_for_connected_state(chamelium->drm_fd,
+					 &chamelium->ports[i].connector_id, 1);
+
 	/* Destroy any EDIDs we created to make sure we don't leak them */
 	igt_list_for_each_entry_safe(pos, tmp, &chamelium->edids, link) {
 		for (i = 0; i < CHAMELIUM_MAX_PORTS; i++) {
-- 
2.25.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2020-07-06 17:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-03  5:03 [igt-dev] [PATCH i-g-t] lib/igt_chamelium: Wait for connectors after replugging them at exit Kunal Joshi
2020-07-03 13:38 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-07-03 16:26 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2020-07-06 17:26 ` [igt-dev] [PATCH i-g-t] " Lyude Paul

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