drm/amd/pm: drop unused SMU v13 API
authorEvan Quan <evan.quan@amd.com>
Mon, 5 Dec 2022 07:34:39 +0000 (15:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Dec 2022 17:18:20 +0000 (12:18 -0500)
The API is not in use. And it's unlikely to be used in
the future either.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c

index ea29ac6..8d4ab1d 100644 (file)
@@ -243,11 +243,6 @@ int smu_v13_0_set_single_dpm_table(struct smu_context *smu,
                                   enum smu_clk_type clk_type,
                                   struct smu_13_0_dpm_table *single_dpm_table);
 
-int smu_v13_0_get_dpm_level_range(struct smu_context *smu,
-                                 enum smu_clk_type clk_type,
-                                 uint32_t *min_value,
-                                 uint32_t *max_value);
-
 int smu_v13_0_get_current_pcie_link_width_level(struct smu_context *smu);
 
 int smu_v13_0_get_current_pcie_link_width(struct smu_context *smu);
index e3a80ac..4db5f26 100644 (file)
@@ -2062,45 +2062,6 @@ int smu_v13_0_set_single_dpm_table(struct smu_context *smu,
        return 0;
 }
 
-int smu_v13_0_get_dpm_level_range(struct smu_context *smu,
-                                 enum smu_clk_type clk_type,
-                                 uint32_t *min_value,
-                                 uint32_t *max_value)
-{
-       uint32_t level_count = 0;
-       int ret = 0;
-
-       if (!min_value && !max_value)
-               return -EINVAL;
-
-       if (min_value) {
-               /* by default, level 0 clock value as min value */
-               ret = smu_v13_0_get_dpm_freq_by_index(smu,
-                                                     clk_type,
-                                                     0,
-                                                     min_value);
-               if (ret)
-                       return ret;
-       }
-
-       if (max_value) {
-               ret = smu_v13_0_get_dpm_level_count(smu,
-                                                   clk_type,
-                                                   &level_count);
-               if (ret)
-                       return ret;
-
-               ret = smu_v13_0_get_dpm_freq_by_index(smu,
-                                                     clk_type,
-                                                     level_count - 1,
-                                                     max_value);
-               if (ret)
-                       return ret;
-       }
-
-       return ret;
-}
-
 int smu_v13_0_get_current_pcie_link_width_level(struct smu_context *smu)
 {
        struct amdgpu_device *adev = smu->adev;