]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Remove unnecessary DC FP guard
authorWayne Lin <Wayne.Lin@amd.com>
Tue, 6 Jan 2026 07:46:49 +0000 (15:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Jan 2026 23:10:56 +0000 (18:10 -0500)
[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: ChiaHsuan (Tom) Chung <chiahsuan.chung@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c

index 8d10aac9c510c35d6ac5781e8ade6f73ac3bd90e..46985eb2a623f60f38d646d4edf6cfbf4635e31b 100644 (file)
@@ -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;
 
index 2060acd5ae0988faa1e84cdf4031258588c317b4..967e813a45e518ec28a9a3b0d3196dc39b658262 100644 (file)
@@ -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;