diff options
author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-05-06 18:40:49 +0300 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-05-11 15:56:35 +0300 |
commit | 5a5a3162a7638b3ae38b6dc2545622c204d1b97c (patch) | |
tree | 95000386870e2d592f13c514f16f7941e2573aec /lib/igt_chamelium.h | |
parent | 31657c63bcc0c7f0d3eb9d8c03a39b7987c60d7d (diff) |
lib/igt_kms: Make igt_display_require() + chamelium more robust
1. We don't reset Chamelium, as this generates extra unplug events if
any of the ports is already connected which is often the case
2. We try to plug all the chamelium ports, it's a noop if they are
already plugged
2. We wait for all the ports being connected:
- if the port mapping is provided: wait for the ports to be connected
- if there is no mapping: sleep(10) and hope for the best
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'lib/igt_chamelium.h')
-rw-r--r-- | lib/igt_chamelium.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_chamelium.h b/lib/igt_chamelium.h index c29741b4..359f4ab3 100644 --- a/lib/igt_chamelium.h +++ b/lib/igt_chamelium.h @@ -215,5 +215,7 @@ void chamelium_destroy_frame_dump(struct chamelium_frame_dump *dump); void chamelium_destroy_audio_file(struct chamelium_audio_file *audio_file); void chamelium_infoframe_destroy(struct chamelium_infoframe *infoframe); bool chamelium_plug_all(struct chamelium *chamelium); +bool chamelium_wait_all_configured_ports_connected(struct chamelium *chamelium, + int drm_fd); #endif /* IGT_CHAMELIUM_H */ |