Skip to content

Commit 9417df6

Browse files
Swapnil Patelgregkh
authored andcommitted
drm/amd/display: Change ASSR disable sequence
commit 2d696cc upstream. [Why] Currently disabling ASSR before stream is disabled causes visible display corruption. [How] Move disable ASSR command to after stream has been disabled. Cc: Mario Limonciello <mario.limonciello@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Swapnil Patel <swapnil.patel@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c36e922 commit 9417df6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/gpu/drm/amd/display/dc/link/link_dpms.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,8 +2313,6 @@ void link_set_dpms_off(struct pipe_ctx *pipe_ctx)
23132313

23142314
dc->hwss.disable_audio_stream(pipe_ctx);
23152315

2316-
edp_set_panel_assr(link, pipe_ctx, &panel_mode_dp, false);
2317-
23182316
update_psp_stream_config(pipe_ctx, true);
23192317
dc->hwss.blank_stream(pipe_ctx);
23202318

@@ -2368,6 +2366,7 @@ void link_set_dpms_off(struct pipe_ctx *pipe_ctx)
23682366
dc->hwss.disable_stream(pipe_ctx);
23692367
disable_link(pipe_ctx->stream->link, &pipe_ctx->link_res, pipe_ctx->stream->signal);
23702368
}
2369+
edp_set_panel_assr(link, pipe_ctx, &panel_mode_dp, false);
23712370

23722371
if (pipe_ctx->stream->timing.flags.DSC) {
23732372
if (dc_is_dp_signal(pipe_ctx->stream->signal))

0 commit comments

Comments
 (0)