提交 dcf6c145 编写于 作者: D Dmytro Laktyushkin 提交者: Alex Deucher

drm/amd/display: clean up mpc programing during fe reset

Signed-off-by: NDmytro Laktyushkin <Dmytro.Laktyushkin@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>
上级 e7b1322e
......@@ -868,16 +868,10 @@ static void reset_front_end_for_pipe(
*/
tree_cfg = &dc->current_context->res_ctx.mpc_tree[pipe_ctx->mpc_idx];
if (pipe_ctx->top_pipe == NULL)
dcn10_delete_mpc_tree(mpc, tree_cfg);
else {
if (dcn10_remove_dpp(mpc, tree_cfg, pipe_ctx->pipe_idx))
pipe_ctx->top_pipe->bottom_pipe = NULL;
else {
dm_logger_write(dc->ctx->logger, LOG_RESOURCE,
"%s: failed to find dpp to be removed!\n",
__func__);
}
if (!dcn10_remove_dpp(mpc, tree_cfg, pipe_ctx->pipe_idx)) {
dm_logger_write(dc->ctx->logger, LOG_RESOURCE,
"%s: failed to find dpp to be removed!\n",
__func__);
}
pipe_ctx->top_pipe = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册