Skip to content

Commit

Permalink
drm/amd/display: Fix FP start/end for dcn30_internal_validate_bw.
Browse files Browse the repository at this point in the history
It calls populate_dml_pipes which uses doubles to initialize the
scale_ratio_depth params. Mirrors the dcn20 logic.

Cc: stable@vger.kernel.org
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Bas Nieuwenhuizen authored and Alex Deucher committed Jan 25, 2022
1 parent ebc77bc commit 72a8d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,6 @@ noinline bool dcn30_internal_validate_bw(
dc->res_pool->funcs->update_soc_for_wm_a(dc, context);
pipe_cnt = dc->res_pool->funcs->populate_dml_pipes(dc, context, pipes, fast_validate);

DC_FP_START();
if (!pipe_cnt) {
out = true;
goto validate_out;
Expand Down Expand Up @@ -2104,7 +2103,6 @@ noinline bool dcn30_internal_validate_bw(
out = false;

validate_out:
DC_FP_END();
return out;
}

Expand Down Expand Up @@ -2306,7 +2304,9 @@ bool dcn30_validate_bandwidth(struct dc *dc,

BW_VAL_TRACE_COUNT();

DC_FP_START();
out = dcn30_internal_validate_bw(dc, context, pipes, &pipe_cnt, &vlevel, fast_validate);
DC_FP_END();

if (pipe_cnt == 0)
goto validate_out;
Expand Down

0 comments on commit 72a8d87

Please sign in to comment.