Commit 9c580e8f authored by Chiawen Huang's avatar Chiawen Huang Committed by Alex Deucher

drm/amd/display: Device flash garbage before get in OS

[Why]
Enabling stream with tg lock makes config settings
pending causing the garbage until tg unlock.

[How]
Keep the original lock mechanism
The driver doesn't lock tg if plane_state is null.
Reviewed-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Acked-by: default avatarTom Chung <chiahsuan.chung@amd.com>
Signed-off-by: default avatarChiawen Huang <chiawen.huang@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9bd110ab
...@@ -110,6 +110,7 @@ void dcn10_lock_all_pipes(struct dc *dc, ...@@ -110,6 +110,7 @@ void dcn10_lock_all_pipes(struct dc *dc,
*/ */
if (pipe_ctx->top_pipe || if (pipe_ctx->top_pipe ||
!pipe_ctx->stream || !pipe_ctx->stream ||
!pipe_ctx->plane_state ||
!tg->funcs->is_tg_enabled(tg)) !tg->funcs->is_tg_enabled(tg))
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment