From: Sowmiya S <sowmiya.s@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: swati2.sharma@intel.com, suraj.kandpal@intel.com,
Sowmiya S <sowmiya.s@intel.com>
Subject: [PATCH i-g-t v1] tests/kms_force_connector_basic: fix force-connector-state for HDMI 2.1
Date: Fri, 10 Jul 2026 15:49:24 +0530 [thread overview]
Message-ID: <20260710101924.2741256-1-sowmiya.s@intel.com> (raw)
Remove igt_display_reset() before igt_display_commit() in
force_connector_state(). The reset disables all CRTCs, causing the
display engine to transition to a lower DC state (DC6/DC9), which
cuts power to the HDMI PHY. HDMI 2.1 monitors de-assert HPD when
the PHY loses power, so FORCE_CONNECTOR_UNSPECIFIED reads HPD=LOW
and reports disconnected, failing the state-restore assertion.
Re-probe the connector after the commit to capture its accurate
natural state as the baseline for the FORCE_CONNECTOR_UNSPECIFIED
check.
Signed-off-by: Sowmiya S <sowmiya.s@intel.com>
---
tests/kms_force_connector_basic.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/kms_force_connector_basic.c b/tests/kms_force_connector_basic.c
index 4ea6b0e8c..ec8b0e25f 100644
--- a/tests/kms_force_connector_basic.c
+++ b/tests/kms_force_connector_basic.c
@@ -181,10 +181,14 @@ static void force_connector_state(int drm_fd, drmModeConnectorPtr connector)
igt_display_require(&display, drm_fd);
- /* Reset display before attempt to use it. */
- igt_display_reset(&display);
igt_display_commit(&display);
+ /* Re-probe to get the connector's original state with HPD accurate. */
+ temp = drmModeGetConnector(drm_fd, connector->connector_id);
+ igt_require(temp);
+ connector->connection = temp->connection;
+ drmModeFreeConnector(temp);
+
/* Force the connector on and check the reported values. */
kmstest_force_connector(drm_fd, connector, FORCE_CONNECTOR_ON);
temp = drmModeGetConnectorCurrent(drm_fd,
--
2.43.0
next reply other threads:[~2026-07-10 9:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-10 10:19 Sowmiya S [this message]
2026-07-10 10:56 ` [PATCH i-g-t v1] tests/kms_force_connector_basic: fix force-connector-state for HDMI 2.1 Sokolowski, Jan
2026-07-10 11:24 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-07-10 11:40 ` ✗ i915.CI.BAT: failure " Patchwork
2026-07-10 20:18 ` ✗ Xe.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=20260710101924.2741256-1-sowmiya.s@intel.com \
--to=sowmiya.s@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=suraj.kandpal@intel.com \
--cc=swati2.sharma@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