Skip to contentSkip to conversation

drm/amd/display: If HPD fails probe EDID to decide if monitor is present

PATCH New Mario Limonciello 1 participant 1 message Aug 14, 2023

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

PATCH 1/1 drm/amd/display: If HPD fails probe EDID to decide if monitor is present

Some monitors return that they're disconnected while powered off but the EDID can still be accessed. Before determining that a link is not available, try to access the EDID.

---
Cc: Harry Wentland <[email protected]>

---
 drivers/gpu/drm/amd/display/dc/link/link_detection.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/link/link_detection.c +2 -0
index c9b6676eaf53..26a739128dd3 100644
@@ -1233,6 +1233,8 @@ bool link_detect_connection_type(struct dc_link *link, enum dc_connection_type *
 	if (is_hpd_high) {
 		*type = dc_connection_single;
 		/* TODO: need to do the actual detection */
+	} else if (dm_helpers_read_local_edid(link->ctx, link, link->local_sink) == EDID_OK) {
+		*type = dc_connection_single;
 	} else {
 		*type = dc_connection_none;
 		if (link->connector_signal == SIGNAL_TYPE_EDP) {
Signature · 1 line
2.34.1