]> git.hungrycats.org Git - linux/commitdiff
drm/amd/display: Remove duplicate pp_rn_set_wm_ranges
authorAlex Hung <alex.hung@amd.com>
Mon, 25 May 2026 21:27:00 +0000 (15:27 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jun 2026 20:11:47 +0000 (16:11 -0400)
[WHAT]
Remove pp_rn_set_wm_ranges and reuse the identical
pp_nv_set_wm_ranges for the DCN_VERSION_2_1 case instead.

Assisted-by: Copilot:Claude-Opus-4.6
Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com>
Signed-off-by: Alex Hung <alex.hung@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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c

index 2cdb8fea504a0a6df35e2992df16dbeca6967fe2..2fda6fbed88f74f01086f9ea30b18d8c6b430c4f 100644 (file)
@@ -686,17 +686,6 @@ static enum pp_smu_status pp_rn_get_dpm_clock_table(
        return PP_SMU_RESULT_OK;
 }
 
-static enum pp_smu_status pp_rn_set_wm_ranges(struct pp_smu *pp,
-               struct pp_smu_wm_range_sets *ranges)
-{
-       const struct dc_context *ctx = pp->dm;
-       struct amdgpu_device *adev = ctx->driver_context;
-
-       amdgpu_dpm_set_watermarks_for_clocks_ranges(adev, ranges);
-
-       return PP_SMU_RESULT_OK;
-}
-
 void dm_pp_get_funcs(
                struct dc_context *ctx,
                struct pp_smu_funcs *funcs)
@@ -743,7 +732,7 @@ void dm_pp_get_funcs(
        case DCN_VERSION_2_1:
                funcs->ctx.ver = PP_SMU_VER_RN;
                funcs->rn_funcs.pp_smu.dm = ctx;
-               funcs->rn_funcs.set_wm_ranges = pp_rn_set_wm_ranges;
+               funcs->rn_funcs.set_wm_ranges = pp_nv_set_wm_ranges;
                funcs->rn_funcs.get_dpm_clock_table = pp_rn_get_dpm_clock_table;
                break;
        default: