Skip to content

Commit

Permalink
drm/amd/display: update clock when non-seamless boot stream exist
Browse files Browse the repository at this point in the history
[Why]
Seamless boot skip porgram clock when set path mode.
It cause driverprogram clock after unblank stream.

[How]
update clock when non-seamless boot stream exist

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Lewis Huang authored and Alex Deucher committed Sep 15, 2020
1 parent f833d62 commit 598c13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/display/dc/core/dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c
dc->optimize_seamless_boot_streams++;
}

if (dc->optimize_seamless_boot_streams == 0)
if (context->stream_count > dc->optimize_seamless_boot_streams)
dc->hwss.prepare_bandwidth(dc, context);

disable_dangling_plane(dc, context);
Expand Down Expand Up @@ -1368,7 +1368,7 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c

dc_enable_stereo(dc, context, dc_streams, context->stream_count);

if (dc->optimize_seamless_boot_streams == 0) {
if (context->stream_count > dc->optimize_seamless_boot_streams) {
/* Must wait for no flips to be pending before doing optimize bw */
wait_for_no_pipes_pending(dc, context);
/* pplib is notified if disp_num changed */
Expand Down

0 comments on commit 598c13b

Please sign in to comment.