Commit 6988eebf authored by Imre Deak's avatar Imre Deak

lib/igt_chamelium: Wait for connectors after replugging them at exit

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.

Cc: Kunal Joshi <kunal1.joshi@intel.com>
Cc: Lyude Paul <lyude@redhat.com>
Signed-off-by: Imre Deak's avatarImre Deak <imre.deak@intel.com>
Tested-by: KunalJoshi95's avatarKunal Joshi <kunal1.joshi@intel.com>
Reviewed-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
Reviewed-by: KunalJoshi95's avatarKunal Joshi <kunal1.joshi@intel.com>
parent 48ad53e2
Pipeline #173289 passed with stages
in 15 minutes and 51 seconds
......@@ -2541,6 +2541,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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment