[PATCH i-g-t v3 1/2] tests/chamelium/kms_chamelium_edid: Fix hotplug detection with connector reprobe
Naladala Ramanaidu
ramanaidu.naladala at intel.com
Thu Jan 9 20:09:10 UTC 2025
Ensure connector is reprobed and detected as disconnected before
plugging in the port.
v1: Merging two patches into a single patch. (Kunal)
Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala at intel.com>
Reviewed-by: Kunal Joshi <kunal1.joshi at intel.com>
---
tests/chamelium/kms_chamelium_edid.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/chamelium/kms_chamelium_edid.c b/tests/chamelium/kms_chamelium_edid.c
index e572a6468..d2d85cad5 100644
--- a/tests/chamelium/kms_chamelium_edid.c
+++ b/tests/chamelium/kms_chamelium_edid.c
@@ -419,12 +419,12 @@ static void test_suspend_resume_edid_change(chamelium_data_t *data,
chamelium_reset_state(&data->display, data->chamelium, port,
data->ports, data->port_count);
- /* Catch the event and flush all remaining ones. */
- igt_assert(igt_hotplug_detected(mon, CHAMELIUM_HOTPLUG_TIMEOUT));
igt_flush_uevents(mon);
/* First plug in the port */
chamelium_set_edid(data, port, edid);
+ igt_assert(chamelium_reprobe_connector(&data->display, data->chamelium,
+ port) == DRM_MODE_DISCONNECTED);
chamelium_plug(data->chamelium, port);
igt_assert(igt_hotplug_detected(mon, CHAMELIUM_HOTPLUG_TIMEOUT));
--
2.43.0
More information about the igt-dev
mailing list