]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Fix warning observed in mode change on Vega
authorJerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Tue, 31 Jul 2018 19:15:38 +0000 (15:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Aug 2018 22:22:08 +0000 (17:22 -0500)
[Why]
DOUBLE_BUFFER_EN bit is getting cleared before enable blanking.
That leads to CRTC_BLANK_DATA_EN is getting updated immediately.

[How]
Get DOUBLE_BUFFER_EN bit set, the same as DCE110.

Signed-off-by: Jerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c

index 2ea490f8482e04f2951c82ea8b27c9332835bb8f..04b866f0fa1f4ba661ac31e5192c21b1fd1b65ba 100644 (file)
@@ -772,7 +772,7 @@ void dce120_tg_set_blank(struct timing_generator *tg,
 
        CRTC_REG_SET(
                CRTC0_CRTC_DOUBLE_BUFFER_CONTROL,
-               CRTC_BLANK_DATA_DOUBLE_BUFFER_EN, 0);
+               CRTC_BLANK_DATA_DOUBLE_BUFFER_EN, 1);
 
        if (enable_blanking)
                CRTC_REG_SET(CRTC0_CRTC_BLANK_CONTROL, CRTC_BLANK_DATA_EN, 1);