summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dce
diff options
context:
space:
mode:
authorYongqiang Sun <yongqiang.sun@amd.com>2017-07-28 22:33:38 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-09-27 01:15:59 +0300
commitd70ccd4a65373599fe9aa999dff07c05ea2893e6 (patch)
treef778e6495b3ae94a809cfbbea92e657435e5280e /drivers/gpu/drm/amd/display/dc/dce
parente75504b1292f3a9a173789a06a674fb3ba04450f (diff)
downloadlinux-d70ccd4a65373599fe9aa999dff07c05ea2893e6.tar.xz
drm/amd/display: Keep blank until set visibility to true after mode switch
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c b/drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c
index a8c254f66c98..c46b3e82cdcc 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c
@@ -52,6 +52,10 @@ void dce_pipe_control_lock(struct core_dc *dc,
uint32_t dcp_grph, scl, blnd, update_lock_mode, val;
struct dce_hwseq *hws = dc->hwseq;
+ /* Not lock pipe when blank */
+ if (lock && pipe->tg->funcs->is_blanked(pipe->tg))
+ return;
+
val = REG_GET_4(BLND_V_UPDATE_LOCK[pipe->pipe_idx],
BLND_DCP_GRPH_V_UPDATE_LOCK, &dcp_grph,
BLND_SCL_V_UPDATE_LOCK, &scl,