1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc/dcn21
Melissa Wen 22f87d9983 drm/amd/display: move FPU operations from dcn21 to dml/dcn20 folder
dml/dcn20_fpu file centralizes all DCN2x functions that require FPU access.
Therefore, this patch moves FPU-related code from dcn21 to dcn20_fpu. These
include:
- dcn21_populate_dml_pipes_from_context()
- dcn21_validate_bandwidth_fp() and related:
  - dcn21_calculate_wm(),
  - patch_bounding_box(),
  - calculate_wm_set_for_vlevel()
- renaming update_bw_bounding_box() to dcn21_update_bw_bounding_box(), move
to dcn20_fpu with related static function construct_low_pstate_lvl()

Also, make dcn21_fast_validate_bw() public in dcn21_resource as it is called
by dcn21_validate_bandwidth_fp() now in dcn20_fpu.

Reuse dcn20_fpu_adjust_dppclk() in dcn21_fast_validate_bw() as it isolates
the same FPU operation.

Include dchubbub.h as it is required in dcn21_populate_dml_pipes_from_context()

Signed-off-by: Melissa Wen <mwen@igalia.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-03-15 14:25:16 -04:00
..
dcn21_dccg.c drm/amd/display: Add interface for ADD & DROP PIXEL Registers 2021-06-08 12:22:42 -04:00
dcn21_dccg.h drm/amd/display: Adding prototype for dccg21_update_dpp_dto() 2020-12-15 11:35:25 -05:00
dcn21_hubbub.c drm/amd/display: fix function scopes 2021-12-13 16:34:26 -05:00
dcn21_hubbub.h drm/amd/display: log additional register state for debug 2021-07-21 13:39:25 -04:00
dcn21_hubp.c drm/amd/display: fix function scopes 2021-12-13 16:34:26 -05:00
dcn21_hubp.h drm/amd/display: update chroma viewport wa 2019-12-18 16:09:08 -05:00
dcn21_hwseq.c drm/amd/display: Added multi instance support for ABM 2021-04-28 23:35:50 -04:00
dcn21_hwseq.h drm/amd/display: Block ABM in case of eDP ODM 2020-10-05 15:16:43 -04:00
dcn21_init.c drm/amd: append missing includes 2021-12-13 16:32:34 -05:00
dcn21_init.h drm/amd/display: cleanup of function pointer tables 2019-11-19 10:12:53 -05:00
dcn21_link_encoder.c drm/amd/display: fix function scopes 2021-12-13 16:34:26 -05:00
dcn21_link_encoder.h drm/amd/display: add missing dcn link encoder regs 2019-12-18 16:09:06 -05:00
dcn21_resource.c drm/amd/display: move FPU operations from dcn21 to dml/dcn20 folder 2022-03-15 14:25:16 -04:00
dcn21_resource.h drm/amd/display: move FPU operations from dcn21 to dml/dcn20 folder 2022-03-15 14:25:16 -04:00
Makefile drm/amd/display: move FPU operations from dcn21 to dml/dcn20 folder 2022-03-15 14:25:16 -04:00