]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Remove unused dml2_project
authorRoman Li <Roman.Li@amd.com>
Mon, 13 Apr 2026 22:23:10 +0000 (18:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:41:15 +0000 (15:41 -0400)
Remove all references to dml2_project_dcn40 from dml2.
The project is not used.

Signed-off-by: Roman Li <roman.li@amd.com>
Acked-by: Chenyu Chen <chen-yu.chen@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/dml_top_types.h
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_factory.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_dpmm/dml2_dpmm_factory.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_mcg/dml2_mcg_factory.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/dml2_pmo_factory.c
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_interfaces.c

index 98b26116cdc14794ed5a073fa248ba02d21aa5f8..dff903a103dbdf35d95d2d6bcb58ae3fa095637a 100644 (file)
@@ -19,7 +19,6 @@ enum dml2_project_id {
        dml2_project_dcn4x_stage1,
        dml2_project_dcn4x_stage2,
        dml2_project_dcn4x_stage2_auto_drr_svp,
-       dml2_project_dcn40,
        dml2_project_dcn42,
 };
 
index 6cad99c21139beb19a1f5d905c6790e692f85b46..67e307fa43108d8a07360e68588b67c93a9d41fe 100644 (file)
@@ -21,7 +21,6 @@ bool dml2_core_create(enum dml2_project_id project_id, struct dml2_core_instance
        case dml2_project_dcn4x_stage1:
                result = false;
                break;
-       case dml2_project_dcn40:
        case dml2_project_dcn4x_stage2:
        case dml2_project_dcn4x_stage2_auto_drr_svp:
                out->initialize = &core_dcn4_initialize;
index 39965ff2e1115b8738b697d2ceed5ced54d7eb74..be0517e10104a52973699d445dad60e5415e2d97 100644 (file)
@@ -33,7 +33,6 @@ bool dml2_dpmm_create(enum dml2_project_id project_id, struct dml2_dpmm_instance
                out->map_watermarks = &dummy_map_watermarks;
                result = true;
                break;
-       case dml2_project_dcn40:
        case dml2_project_dcn4x_stage2:
                out->map_mode_to_soc_dpm = &dpmm_dcn3_map_mode_to_soc_dpm;
                out->map_watermarks = &dummy_map_watermarks;
index fb0b0ac547c722d2fcb36dbab0a7ffea87cf321e..270283332cc18de2ad7d01e2a23528b61949c41e 100644 (file)
@@ -27,7 +27,6 @@ bool dml2_mcg_create(enum dml2_project_id project_id, struct dml2_mcg_instance *
                out->build_min_clock_table = &dummy_build_min_clock_table;
                result = true;
                break;
-       case dml2_project_dcn40:
        case dml2_project_dcn4x_stage2:
        case dml2_project_dcn4x_stage2_auto_drr_svp:
                out->build_min_clock_table = &mcg_dcn4_build_min_clock_table;
index 83802aac11cd175fd84fdb965669a4bec49ed117..af2ba7d08a612e702864212ecefc96d6ee8adcd7 100644 (file)
@@ -3,8 +3,8 @@
 // Copyright 2024 Advanced Micro Devices, Inc.
 
 #include "dml2_pmo_factory.h"
-#include "dml2_pmo_dcn3.h"
 #include "dml2_pmo_dcn4_fams2.h"
+#include "dml2_pmo_dcn3.h"
 #include "dml2_external_lib_deps.h"
 
 static bool dummy_init_for_stutter(struct dml2_pmo_init_for_stutter_in_out *in_out)
@@ -40,7 +40,6 @@ bool dml2_pmo_create(enum dml2_project_id project_id, struct dml2_pmo_instance *
                out->optimize_dcc_mcache = pmo_dcn4_fams2_optimize_dcc_mcache;
                result = true;
                break;
-       case dml2_project_dcn40:
        case dml2_project_dcn4x_stage2:
                out->initialize = pmo_dcn3_initialize;
 
index a6c5031f69c19e1c88b6c3512951d32f449ae717..04860b6790df1930317f57d6b38505b3661ef10b 100644 (file)
@@ -17,7 +17,6 @@ bool dml2_initialize_instance(struct dml2_initialize_instance_in_out *in_out)
        case dml2_project_dcn4x_stage1:
        case dml2_project_dcn4x_stage2:
        case dml2_project_dcn4x_stage2_auto_drr_svp:
-       case dml2_project_dcn40:
        case dml2_project_dcn42:
                return dml2_top_soc15_initialize_instance(in_out);
        case dml2_project_invalid: