aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index b65551d07e4f..260a01ebd888 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -1672,6 +1672,7 @@ static void commit_planes_do_stream_update(struct dc *dc,
1672 continue; 1672 continue;
1673 1673
1674 if (stream_update->dpms_off) { 1674 if (stream_update->dpms_off) {
1675 dc->hwss.pipe_control_lock(dc, pipe_ctx, true);
1675 if (*stream_update->dpms_off) { 1676 if (*stream_update->dpms_off) {
1676 core_link_disable_stream(pipe_ctx, KEEP_ACQUIRED_RESOURCE); 1677 core_link_disable_stream(pipe_ctx, KEEP_ACQUIRED_RESOURCE);
1677 dc->hwss.optimize_bandwidth(dc, dc->current_state); 1678 dc->hwss.optimize_bandwidth(dc, dc->current_state);
@@ -1679,6 +1680,7 @@ static void commit_planes_do_stream_update(struct dc *dc,
1679 dc->hwss.prepare_bandwidth(dc, dc->current_state); 1680 dc->hwss.prepare_bandwidth(dc, dc->current_state);
1680 core_link_enable_stream(dc->current_state, pipe_ctx); 1681 core_link_enable_stream(dc->current_state, pipe_ctx);
1681 } 1682 }
1683 dc->hwss.pipe_control_lock(dc, pipe_ctx, false);
1682 } 1684 }
1683 1685
1684 if (stream_update->abm_level && pipe_ctx->stream_res.abm) { 1686 if (stream_update->abm_level && pipe_ctx->stream_res.abm) {