mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] drm/bridge: display-connector: detect DP state if cable is plugged on boot
@ 2026-05-28  7:10 Dmitry Baryshkov
  2026-05-28  7:10 ` [PATCH v3 1/3] drm/bridge: split hpd_mutex into two mutexes Dmitry Baryshkov
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Dmitry Baryshkov @ 2026-05-28  7:10 UTC (permalink / raw)
  To: Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
	Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Tomi Valkeinen,
	Boris Brezillon, Sam Ravnborg, Sebastian Reichel, Yongxing Mou,
	Jonas Karlman
  Cc: dri-devel, linux-kernel

Unlike the USB-C AltMode handling and unlike the DP controller handling
the HPD on its own, if the display-connector is being used to handle the
HPD pin, DP controller might not be able to get either the HPD
notification nor detect the cable state if the cable is plugged in
before the system has booted.

Make the display-connector send the HPD notifications during system
startup for DisplayPort connectors.

It's typically not a problem for other types of display connectors since
there is no special procedure to detect if the monitor is actually
plugged in or not.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
Changes in v3:
- Corrected typos in the commit message (Sashiko)
- Reworked HPD-related bridge locking to remove AB-BA deadlock (Jonas,
  Sashiko)
- Link to v2: https://patch.msgid.link/20260513-dp-connector-hpd-v2-0-42f757bfcbf9@oss.qualcomm.com

Changes in v2:
- Expanded commit message, explaining difference from HDMI (Laurent)
- Link to v1: https://lore.kernel.org/r/20260314-dp-connector-hpd-v1-0-786044cedc17@oss.qualcomm.com

---
Dmitry Baryshkov (3):
      drm/bridge: split hpd_mutex into two mutexes
      drm/bridge: display-connector: don't autoenable HPD IRQ
      drm/bridge: display-connector: trigger initial HPD event for DP

 drivers/gpu/drm/bridge/display-connector.c | 36 ++++++++++++++++++++++++++++++
 drivers/gpu/drm/drm_bridge.c               | 16 ++++++++++---
 include/drm/drm_bridge.h                   |  4 ++++
 3 files changed, 53 insertions(+), 3 deletions(-)
---
base-commit: 687da68900cd1a46549f7d9430c7d40346cb86a0
change-id: 20260314-dp-connector-hpd-f069e66bc6af

Best regards,
--  
With best wishes
Dmitry


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

end of thread, other threads:[~2026-06-08  6:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-28  7:10 [PATCH v3 0/3] drm/bridge: display-connector: detect DP state if cable is plugged on boot Dmitry Baryshkov
2026-05-28  7:10 ` [PATCH v3 1/3] drm/bridge: split hpd_mutex into two mutexes Dmitry Baryshkov
2026-06-01 16:01   ` Sebastian Reichel
2026-05-28  7:10 ` [PATCH v3 2/3] drm/bridge: display-connector: don't autoenable HPD IRQ Dmitry Baryshkov
2026-05-28 11:07   ` Neil Armstrong
2026-06-01 16:01   ` Sebastian Reichel
2026-05-28  7:10 ` [PATCH v3 3/3] drm/bridge: display-connector: trigger initial HPD event for DP Dmitry Baryshkov
2026-06-01 16:02   ` Sebastian Reichel
2026-06-08  6:49 ` [PATCH v3 0/3] drm/bridge: display-connector: detect DP state if cable is plugged on boot Dmitry Baryshkov

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

all inboxes | Powered by JetHome®