]> Git Repo - linux.git/commitdiff
drm/amd/display: Fix EDID parsing after resume from suspend
authorStylon Wang <[email protected]>
Tue, 28 Jul 2020 07:10:35 +0000 (15:10 +0800)
committerAlex Deucher <[email protected]>
Mon, 10 Aug 2020 22:09:17 +0000 (18:09 -0400)
[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: [email protected]
Signed-off-by: Stylon Wang <[email protected]>
Reviewed-by: Nicholas Kazlauskas <[email protected]>
Acked-by: Qingqing Zhuo <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index e6833a2d01f87d94b0f7e381542cbdba97382645..39444619d9b5f8bb34fab5338ee3b4af2fd80d09 100644 (file)
@@ -2196,6 +2196,7 @@ void amdgpu_dm_update_connector_after_detect(
 
                        drm_connector_update_edid_property(connector,
                                                           aconnector->edid);
+                       drm_add_edid_modes(connector, aconnector->edid);
 
                        if (aconnector->dc_link->aux_mode)
                                drm_dp_cec_set_edid(&aconnector->dm_dp_aux.aux,
This page took 0.064412 seconds and 4 git commands to generate.