Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/mst: Fix sporadic second display not detected after warm boot/G3
@ 2026-10-01 21:57 FNU VISHWANATHA
  2026-10-01 21:57 ` [PATCH 2/2] drm/i915/mst: Force link address reprobe after MST resume FNU VISHWANATHA
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: FNU VISHWANATHA @ 2026-10-01 21:57 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx, FNU VISHWANATHA

The intermittent detection failure of the second display over MST HUB is caused
by a race condition in MST port status detection during warm boot/G3 resume.

When a port transitions from input to output state during topology reprobe, the
driver was not forcing a re-probe of the link address. This caused ports that
were temporarily incorrectly marked as input ports to never create connectors.

Force a link address reprobe when a port transitions from input (1) to output
(0) state, giving the MST hub another chance to properly report the port status.

Signed-off-by: FNU VISHWANATHA <fnu.vishwanatha@intel.com>
---
 drivers/gpu/drm/display/drm_dp_mst_topology.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c
index be749dcad3b5..cc340e4235cc 100644
--- a/drivers/gpu/drm/display/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c
@@ -2377,7 +2377,11 @@ drm_dp_mst_handle_link_address_port(struct drm_dp_mst_branch *mstb,
                changed = true;
                created = true;
        } else if (port->input && !port_msg->input_port) {
+               /* Port transitioned from input to output (e.g., during warm boot/G3 resume)
+                * We need to force link address reprobe to get proper port info
+                */
                changed = true;
+               mstb->link_address_sent = false;
        } else if (port->connector) {
                /* We're updating a port that's exposed to userspace, so do it
                 * under lock
-- 
2.34.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-02  9:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-01 21:57 [PATCH 1/2] drm/mst: Fix sporadic second display not detected after warm boot/G3 FNU VISHWANATHA
2026-10-01 21:57 ` [PATCH 2/2] drm/i915/mst: Force link address reprobe after MST resume FNU VISHWANATHA
2026-10-02  9:23   ` Jani Nikula
2026-10-02  9:28     ` Jani Nikula
2026-10-01 22:37 ` ✗ Fi.CI.BUILD: failure for series starting with [1/2] drm/mst: Fix sporadic second display not detected after warm boot/G3 Patchwork
2026-10-02  9:21 ` [PATCH 1/2] " Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox