summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc
diff options
context:
space:
mode:
authorIlya Bakoulin <Ilya.Bakoulin@amd.com>2022-09-13 14:56:13 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-09-29 09:41:44 -0400
commit7712b0a7df76447515752afcf8ec470b17ea30ef (patch)
tree012eee0729ee7b14dc529e47aa44e1c67dc6e65a /drivers/gpu/drm/amd/display/dc
parentd3d61281edc0ab0c3d566e760d5bd4db5a9c217a (diff)
downloadlinux-stable-7712b0a7df76447515752afcf8ec470b17ea30ef.tar.gz
linux-stable-7712b0a7df76447515752afcf8ec470b17ea30ef.tar.bz2
linux-stable-7712b0a7df76447515752afcf8ec470b17ea30ef.zip
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 <Martin.Leung@amd.com> Acked-by: Jasdeep Dhillon <jdhillon@amd.com> Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index f0b90ca7d086..eeaa347cdc37 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);
}