Commit d5ca5fdb authored by Eric Yang's avatar Eric Yang Committed by Alex Deucher

drm/amd/display: fix underflow on boot

[Why]
New seamless boot sequence introduced a bug where front end is disabled
without blanking otg.

[How]
Adjust the condition of blanking otg to match seamless boot.
Signed-off-by: default avatarEric Yang <Eric.Yang2@amd.com>
Reviewed-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Acked-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 15ae3b28
...@@ -979,16 +979,14 @@ static void dcn10_init_pipes(struct dc *dc, struct dc_state *context) ...@@ -979,16 +979,14 @@ static void dcn10_init_pipes(struct dc *dc, struct dc_state *context)
* to non-preferred front end. If pipe_ctx->stream is not NULL, * to non-preferred front end. If pipe_ctx->stream is not NULL,
* we will use the pipe, so don't disable * we will use the pipe, so don't disable
*/ */
if (pipe_ctx->stream != NULL) if (pipe_ctx->stream != NULL && can_apply_seamless_boot)
continue; continue;
if (tg->funcs->is_tg_enabled(tg))
tg->funcs->lock(tg);
/* Blank controller using driver code instead of /* Blank controller using driver code instead of
* command table. * command table.
*/ */
if (tg->funcs->is_tg_enabled(tg)) { if (tg->funcs->is_tg_enabled(tg)) {
tg->funcs->lock(tg);
tg->funcs->set_blank(tg, true); tg->funcs->set_blank(tg, true);
hwss_wait_for_blank_complete(tg); hwss_wait_for_blank_complete(tg);
} }
......
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