Skip to content

Commit bd4b1e3

Browse files
Fudongwangalexdeucher
authored andcommitted
drm/amd/display: always blank stream before disable crtc
Garbage will show due to dig is on. So blank stream needed. Reviewed-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Fudongwang <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 15b9f62 commit bd4b1e3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,15 +519,18 @@ static void dcn31_reset_back_end_for_pipe(
519519

520520
dc->hwss.set_abm_immediate_disable(pipe_ctx);
521521

522-
if ((!pipe_ctx->stream->dpms_off || pipe_ctx->stream->link->link_status.link_active)
523-
&& pipe_ctx->stream->sink && pipe_ctx->stream->sink->edid_caps.panel_patch.blankstream_before_otg_off) {
522+
link = pipe_ctx->stream->link;
523+
524+
if ((!pipe_ctx->stream->dpms_off || link->link_status.link_active) &&
525+
(link->connector_signal == SIGNAL_TYPE_EDP))
524526
dc->hwss.blank_stream(pipe_ctx);
525-
}
526527

527528
pipe_ctx->stream_res.tg->funcs->set_dsc_config(
528529
pipe_ctx->stream_res.tg,
529530
OPTC_DSC_DISABLED, 0, 0);
531+
530532
pipe_ctx->stream_res.tg->funcs->disable_crtc(pipe_ctx->stream_res.tg);
533+
531534
pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, false);
532535
if (pipe_ctx->stream_res.tg->funcs->set_odm_bypass)
533536
pipe_ctx->stream_res.tg->funcs->set_odm_bypass(
@@ -539,7 +542,6 @@ static void dcn31_reset_back_end_for_pipe(
539542
pipe_ctx->stream_res.tg->funcs->set_drr(
540543
pipe_ctx->stream_res.tg, NULL);
541544

542-
link = pipe_ctx->stream->link;
543545
/* DPMS may already disable or */
544546
/* dpms_off status is incorrect due to fastboot
545547
* feature. When system resume from S4 with second

0 commit comments

Comments
 (0)