All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amd/display: Add DP power-up delay quirk for LG SMARTGAME+ (32G810SA)
@ 2026-11-23 19:21 Oleksandr Mikriukov
  0 siblings, 0 replies; 2+ messages in thread
From: Oleksandr Mikriukov @ 2026-11-23 19:21 UTC (permalink / raw)
  To: amd-gfx

(Resend: the first attempt was held for moderation because the sender
was not subscribed to the list at that time.)

The LG 32G810SA-WB only starts answering AUX about 2 seconds after
leaving D3.  With the default four 8b/10b link-training attempts
(4 x 50 ms, ~1 s total) the driver gives up while the sink is still
waking, logs "enabling link 1 failed: 15" and the compositor drops the
output; the display then stays black after a DPMS wake until it is
power-cycled on its own panel.

A second stream enable a moment later trains fine, so this is a timing
race against the sink's wake-up latency.  The EDID quirk table already
carries a multi-second delay for another panel, so reuse
dc_panel_patch.dppowerup_delay for this sink.

Reported and diagnosed in:
https://gitlab.freedesktop.org/drm/amd/-/work_items/6193

Signed-off-by: Oleksandr Mikriukov <mikriukov.oleksandr@gmail.com>
---
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
@@ -112,2 +112,13 @@
 		break;
+	/* LG SMARTGAME+ (32G810SA-WB): the DP receiver answers AUX only
+	 * ~2 s after leaving D3; with four 8b/10b retries (~1 s) link
+	 * training gives up while the sink is still waking, the
+	 * connector is reported disconnected and the output stays black.
+	 */
+	case drm_edid_encode_panel_id('G', 'S', 'M', 0x77dd):
+		drm_dbg_driver(dev,
+			       "Add 2s DP power-up delay for panel id %X\n",
+			       panel_id);
+		edid_caps->panel_patch.dppowerup_delay = 2000;
+		break;
 	/* Workaround for some monitors which does not work well with FAMS */

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [PATCH] drm/amd/display: Add DP power-up delay quirk for LG SMARTGAME+ (32G810SA)
@ 2026-11-23 16:26 Oleksandr Mikriukov
  0 siblings, 0 replies; 2+ messages in thread
From: Oleksandr Mikriukov @ 2026-11-23 16:26 UTC (permalink / raw)
  To: amd-gfx

The LG 32G810SA-WB only starts answering AUX about 2 seconds after
leaving D3.  With the default four 8b/10b link-training attempts
(4 x 50 ms, ~1 s total) the driver gives up while the sink is still
waking, logs "enabling link 1 failed: 15" and the compositor drops the
output; the display then stays black after a DPMS wake until it is
power-cycled on its own panel.

A second stream enable a moment later trains fine, so this is a timing
race against the sink's wake-up latency.  The EDID quirk table already
carries a multi-second delay for another panel, so reuse
dc_panel_patch.dppowerup_delay for this sink.

Reported and diagnosed in:
https://gitlab.freedesktop.org/drm/amd/-/work_items/6193

Signed-off-by: Oleksandr Mikriukov <mikriukov.oleksandr@gmail.com>
---
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
@@ -112,2 +112,13 @@
 		break;
+	/* LG SMARTGAME+ (32G810SA-WB): the DP receiver answers AUX only
+	 * ~2 s after leaving D3; with four 8b/10b retries (~1 s) link
+	 * training gives up while the sink is still waking, the
+	 * connector is reported disconnected and the output stays black.
+	 */
+	case drm_edid_encode_panel_id('G', 'S', 'M', 0x77dd):
+		drm_dbg_driver(dev,
+			       "Add 2s DP power-up delay for panel id %X\n",
+			       panel_id);
+		edid_caps->panel_patch.dppowerup_delay = 2000;
+		break;
 	/* Workaround for some monitors which does not work well with FAMS */

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

end of thread, other threads:[~2026-11-24  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 19:21 [PATCH] drm/amd/display: Add DP power-up delay quirk for LG SMARTGAME+ (32G810SA) Oleksandr Mikriukov
  -- strict thread matches above, loose matches on Subject: below --
2026-11-23 16:26 Oleksandr Mikriukov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.