提交 d70ccd4a 编写于 作者: Y Yongqiang Sun 提交者: Alex Deucher

drm/amd/display: Keep blank until set visibility to true after mode switch

Signed-off-by: NYongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 e75504b1
...@@ -1609,12 +1609,10 @@ void dc_update_surfaces_and_stream(struct dc *dc, ...@@ -1609,12 +1609,10 @@ void dc_update_surfaces_and_stream(struct dc *dc,
if (!pipe_ctx->surface || pipe_ctx->top_pipe) if (!pipe_ctx->surface || pipe_ctx->top_pipe)
continue; continue;
if (!pipe_ctx->tg->funcs->is_blanked(pipe_ctx->tg)) { core_dc->hwss.pipe_control_lock(
core_dc->hwss.pipe_control_lock( core_dc,
core_dc, pipe_ctx,
pipe_ctx, true);
true);
}
} }
if (update_type == UPDATE_TYPE_FULL) if (update_type == UPDATE_TYPE_FULL)
break; break;
...@@ -1697,12 +1695,11 @@ void dc_update_surfaces_and_stream(struct dc *dc, ...@@ -1697,12 +1695,11 @@ void dc_update_surfaces_and_stream(struct dc *dc,
if (!pipe_ctx->surface || pipe_ctx->top_pipe) if (!pipe_ctx->surface || pipe_ctx->top_pipe)
continue; continue;
if (!pipe_ctx->tg->funcs->is_blanked(pipe_ctx->tg)) { core_dc->hwss.pipe_control_lock(
core_dc->hwss.pipe_control_lock( core_dc,
core_dc, pipe_ctx,
pipe_ctx, false);
false);
}
break; break;
} }
} }
......
...@@ -52,6 +52,10 @@ void dce_pipe_control_lock(struct core_dc *dc, ...@@ -52,6 +52,10 @@ void dce_pipe_control_lock(struct core_dc *dc,
uint32_t dcp_grph, scl, blnd, update_lock_mode, val; uint32_t dcp_grph, scl, blnd, update_lock_mode, val;
struct dce_hwseq *hws = dc->hwseq; 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], val = REG_GET_4(BLND_V_UPDATE_LOCK[pipe->pipe_idx],
BLND_DCP_GRPH_V_UPDATE_LOCK, &dcp_grph, BLND_DCP_GRPH_V_UPDATE_LOCK, &dcp_grph,
BLND_SCL_V_UPDATE_LOCK, &scl, BLND_SCL_V_UPDATE_LOCK, &scl,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部