Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 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>

authored by

Wayne Lin and committed by
Alex Deucher
c37084e2 26b5cf26

-4
-2
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
··· 2022 2022 2023 2023 dcn20_merge_pipes_for_validate(dc, context); 2024 2024 2025 - DC_FP_START(); 2026 2025 pipe_cnt = dc->res_pool->funcs->populate_dml_pipes(dc, context, pipes, validate_mode); 2027 - DC_FP_END(); 2028 2026 2029 2027 *pipe_cnt_out = pipe_cnt; 2030 2028
-2
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c
··· 785 785 786 786 dcn20_merge_pipes_for_validate(dc, context); 787 787 788 - DC_FP_START(); 789 788 pipe_cnt = dc->res_pool->funcs->populate_dml_pipes(dc, context, pipes, validate_mode); 790 - DC_FP_END(); 791 789 792 790 *pipe_cnt_out = pipe_cnt; 793 791