drm/amd/display: Introduce DML2
authorQingqing Zhuo <Qingqing.Zhuo@amd.com>
Fri, 28 Jul 2023 21:55:30 +0000 (17:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Oct 2023 20:48:51 +0000 (16:48 -0400)
commit7966f319c66d9468623c6a6a017ecbc0dd79be75
tree362b3b39b0083075a106b16b58b4b495fbae38f9
parent6e2c4941ce0cbe54a7bab8e18c5070e7dc5986f5
drm/amd/display: Introduce DML2

DC is transitioning from DML to DML2, and this commit introduces all the
required changes for some of the already available ASICs and adds the
required code infra to support new ASICs under DML2. DML2 is also a
generated code that provides better mode verification and programming
models for software/hardware, and it enables a better way to create
validation tools. This version is more like a middle step to the
complete transition to the DML2 version.

Changes since V1:
- Alex: Fix typos

Changes since V2:
- Update DC includes

Changes since V3:
- Fix 32 bit compilation issues on x86

Changes since V4:
- Avoid compilation of DML2 on some not supported 32-bit architecture
- Update commit message

Co-developed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Co-developed-by: Roman Li <roman.li@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Signed-off-by: Qingqing Zhuo <Qingqing.Zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
36 files changed:
drivers/gpu/drm/amd/display/dc/Makefile
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c
drivers/gpu/drm/amd/display/dc/dml2/Makefile [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/cmntypes.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/display_mode_core_structs.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/display_mode_lib_defines.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_types.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_internal_types.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_mall_phantom.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_mall_phantom.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_policy.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_policy.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml_assert.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml_depedencies.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml_display_rq_dlg_calc.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml_display_rq_dlg_calc.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml2/dml_logging.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/inc/core_types.h