drm/amd/display: If HPD fails probe EDID to decide if monitor is present
Subsystems (3)
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.
Reported-and-suggested-by [email protected]
Signed-off-by Mario Limonciello <[email protected]>
---
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
@@ -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