linux-loongson/drivers/gpu/drm/amd/display/dc/dml2
Wenjing Liu 86fa0b9830 drm/amd/display: Refactor DML21 Initialization and Configuration
[Why & How]
- Consolidated the initialization of DML21 parameters into a single
function `dml21_populate_dml_init_params` to streamline the process
and improve code readability.
- Updated the function signatures in the header files to reflect changes
in parameter passing for DML context.
- Removed redundant debug option handling and integrated it into the new
configuration population function.
- Adjusted the DML21 initialization logic in the wrapper to accommodate
the new structure, ensuring compatibility with different DCN versions.
- Enhanced the handling of clock parameters and bounding box configurations
from various sources, including hardware defaults and software policies.
- Improved the clarity of the code by renaming functions and variables for
better understanding of their purposes.

Reviewed-by: Austin Zheng <austin.zheng@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-06-30 11:58:50 -04:00
..
dml21 drm/amd/display: Refactor DML21 Initialization and Configuration 2025-06-30 11:58:50 -04:00
cmntypes.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
display_mode_core_structs.h drm/amd/display: apply two different methods to validate modes 2025-06-18 12:19:19 -04:00
display_mode_core.c drm/amd/display: apply two different methods to validate modes 2025-06-18 12:19:19 -04:00
display_mode_core.h drm/amd/display: Add missing DML2 var helpers 2024-05-20 16:20:24 -04:00
display_mode_lib_defines.h drm/amd/display: add dwb support to dml2 2024-04-09 22:16:08 -04:00
display_mode_util.c drm/amd/display: DML21 Reintegration For Various Fixes 2024-12-18 12:19:34 -05:00
display_mode_util.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml2_dc_resource_mgmt.c drm/amd/display: Set ODM Factor Based On DML Architecture 2025-04-07 15:18:36 -04:00
dml2_dc_resource_mgmt.h drm/amd/display: Add some forward declarations 2024-03-20 13:37:36 -04:00
dml2_dc_types.h drm/amd/display: Refactor dc_state interface 2023-12-19 14:59:02 -05:00
dml2_internal_types.h drm/amd/display: fix graphics hang in multi-display mst case 2024-09-02 11:38:30 -04:00
dml2_mall_phantom.c drm/amd/display: replace fast_validate with enum dc_validate_mode 2025-06-03 15:36:23 -04:00
dml2_mall_phantom.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml2_policy.c drm/amd/display: Add DCN36 DML2 support 2025-02-12 21:04:07 -05:00
dml2_policy.h
dml2_translation_helper.c drm/amd/display: remove use_native_pstate_optimization 2025-06-18 12:19:20 -04:00
dml2_translation_helper.h drm/amd/display: fix graphics hang in multi-display mst case 2024-09-02 11:38:30 -04:00
dml2_utils.c drm/amd/display: fix graphics hang in multi-display mst case 2024-09-02 11:38:30 -04:00
dml2_utils.h drm/amd/display: add dwb support to dml2 2024-04-09 22:16:08 -04:00
dml2_wrapper.c drm/amd/display: Refactor DML21 Initialization and Configuration 2025-06-30 11:58:50 -04:00
dml2_wrapper.h drm/amd/display: Deprecate Loading Bounding Box From DMUB On DCN4 2025-06-18 12:19:16 -04:00
dml_assert.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml_depedencies.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml_display_rq_dlg_calc.c drm/amd/display: delete legacy code 2024-12-18 12:19:57 -05:00
dml_display_rq_dlg_calc.h
dml_logging.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
Makefile drm/amd/display: DML2.1 changes 2025-06-18 12:19:17 -04:00