drm/amd/display: Fix EDID parsing after resume from suspend
authorStylon Wang <stylon.wang@amd.com>
Tue, 28 Jul 2020 07:10:35 +0000 (15:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Aug 2020 22:09:17 +0000 (18:09 -0400)
commitb24bdc37d03a0478189e20a50286092840f414fa
tree1a51e0a538ffefd4578a5813a40f0ec850b2daa1
parentabba907c7a20032c2d504fd5afe3af7d440a09d0
drm/amd/display: Fix EDID parsing after resume from suspend

[Why]
Resuming from suspend, CEA blocks from EDID are not parsed and no video
modes can support YUV420. When this happens, output bpc cannot go over
8-bit with 4K modes on HDMI.

[How]
In amdgpu_dm_update_connector_after_detect(), drm_add_edid_modes() is
called after drm_connector_update_edid_property() to fully parse EDID
and update display info.

Cc: stable@vger.kernel.org
Signed-off-by: Stylon Wang <stylon.wang@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c