Commit c37084e2 authored by Wayne Lin's avatar Wayne Lin Committed by Alex Deucher
Browse files

drm/amd/display: Remove unnecessary DC FP guard



[Why & How]
For dcn2x_fast_validate_bw(), not only populate_dml_pipes needs FP guard
but also dml_get_voltage_level().

Remove unnecessary DC_FP_START/DC_FP_END guard in dcn20_fast_validate_bw
and dcn21_fast_validate_bw. FP guard is already there before calling
dcn2x_validate_bandwidth_fp().

Reviewed-by: default avatarChiaHsuan (Tom) Chung <chiahsuan.chung@amd.com>
Signed-off-by: default avatarWayne Lin <Wayne.Lin@amd.com>
Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: default avatarDan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 26b5cf26
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2022,9 +2022,7 @@ bool dcn20_fast_validate_bw(

	dcn20_merge_pipes_for_validate(dc, context);

	DC_FP_START();
	pipe_cnt = dc->res_pool->funcs->populate_dml_pipes(dc, context, pipes, validate_mode);
	DC_FP_END();

	*pipe_cnt_out = pipe_cnt;

+0 −2
Original line number Diff line number Diff line
@@ -785,9 +785,7 @@ bool dcn21_fast_validate_bw(struct dc *dc,

	dcn20_merge_pipes_for_validate(dc, context);

	DC_FP_START();
	pipe_cnt = dc->res_pool->funcs->populate_dml_pipes(dc, context, pipes, validate_mode);
	DC_FP_END();

	*pipe_cnt_out = pipe_cnt;