From: Ilya Bakoulin Date: Tue, 13 Sep 2022 18:56:13 +0000 (-0400) Subject: drm/amd/display: Change EDID fallback condition X-Git-Tag: v6.6.17~6361^2~4^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7712b0a7df76447515752afcf8ec470b17ea30ef;p=platform%2Fkernel%2Flinux-rpi.git drm/amd/display: Change EDID fallback condition [Why] Partially valid EDIDs on MST sinks are treated the same way as broken EDIDs or read failures and result in a fallback EDID being used instead. [How] If edid_status is EDID_PARTIAL_VALID, prefer to use the valid EDID blocks instead of using a fallback EDID. Reviewed-by: Martin Leung Acked-by: Jasdeep Dhillon Signed-off-by: Ilya Bakoulin Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index f0b90ca..eeaa347 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -4006,7 +4006,7 @@ struct dc_sink *dc_link_add_remote_sink( * Treat device as no EDID device if EDID * parsing fails */ - if (edid_status != EDID_OK) { + if (edid_status != EDID_OK && edid_status != EDID_PARTIAL_VALID) { dc_sink->dc_edid.length = 0; dm_error("Bad EDID, status%d!\n", edid_status); }