From: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kunal1.joshi@intel.com,
Naladala Ramanaidu <ramanaidu.naladala@intel.com>
Subject: [PATCH i-g-t v3 1/2] tests/chamelium/kms_chamelium_edid: Fix hotplug detection with connector reprobe
Date: Fri, 10 Jan 2025 01:39:10 +0530 [thread overview]
Message-ID: <20250109200911.1243517-2-ramanaidu.naladala@intel.com> (raw)
In-Reply-To: <20250109200911.1243517-1-ramanaidu.naladala@intel.com>
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@intel.com>
Reviewed-by: Kunal Joshi <kunal1.joshi@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
next prev parent reply other threads:[~2025-01-09 20:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-09 20:09 [PATCH i-g-t v3 0/2] Remove redundant hotplug detection assertion Naladala Ramanaidu
2025-01-09 20:09 ` Naladala Ramanaidu [this message]
2025-01-09 20:09 ` [PATCH i-g-t v3 2/2] HAX patch do not merge Naladala Ramanaidu
2025-01-09 21:31 ` ✗ i915.CI.BAT: failure for Remove redundant hotplug detection assertion (rev3) Patchwork
2025-01-09 22:25 ` ✓ Xe.CI.BAT: success " Patchwork
2025-01-10 7:50 ` ✓ i915.CI.BAT: " Patchwork
2025-01-12 10:32 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-13 18:41 ` ✗ i915.CI.Full: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250109200911.1243517-2-ramanaidu.naladala@intel.com \
--to=ramanaidu.naladala@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kunal1.joshi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox