Skip to contentSkip to conversation

drm/amd/display: Add DP power-up delay quirk for LG SMARTGAME+ (32G810SA)

PATCH New Oleksandr Mikriukov 1 participant 1 message Nov 23

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: Add DP power-up delay quirk for LG SMARTGAME+ (32G810SA)

(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

---

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +11 -0
@@ -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 */