Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/pm/smu11: Remove unused smu_v11_0_get_dpm_level_range

The last use of smu_v11_0_get_dpm_level_range() was removed in 2020 by
commit 46a301e14e8a ("drm/amd/powerplay: drop unnecessary Navi1x specific
APIs")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Dr. David Alan Gilbert and committed by
Alex Deucher
2c599d66 1d8d8b8d

-44
-5
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h
··· 281 281 enum smu_clk_type clk_type, 282 282 struct smu_11_0_dpm_table *single_dpm_table); 283 283 284 - int smu_v11_0_get_dpm_level_range(struct smu_context *smu, 285 - enum smu_clk_type clk_type, 286 - uint32_t *min_value, 287 - uint32_t *max_value); 288 - 289 284 int smu_v11_0_get_current_pcie_link_width_level(struct smu_context *smu); 290 285 291 286 uint16_t smu_v11_0_get_current_pcie_link_width(struct smu_context *smu);
-39
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
··· 2059 2059 return 0; 2060 2060 } 2061 2061 2062 - int smu_v11_0_get_dpm_level_range(struct smu_context *smu, 2063 - enum smu_clk_type clk_type, 2064 - uint32_t *min_value, 2065 - uint32_t *max_value) 2066 - { 2067 - uint32_t level_count = 0; 2068 - int ret = 0; 2069 - 2070 - if (!min_value && !max_value) 2071 - return -EINVAL; 2072 - 2073 - if (min_value) { 2074 - /* by default, level 0 clock value as min value */ 2075 - ret = smu_v11_0_get_dpm_freq_by_index(smu, 2076 - clk_type, 2077 - 0, 2078 - min_value); 2079 - if (ret) 2080 - return ret; 2081 - } 2082 - 2083 - if (max_value) { 2084 - ret = smu_v11_0_get_dpm_level_count(smu, 2085 - clk_type, 2086 - &level_count); 2087 - if (ret) 2088 - return ret; 2089 - 2090 - ret = smu_v11_0_get_dpm_freq_by_index(smu, 2091 - clk_type, 2092 - level_count - 1, 2093 - max_value); 2094 - if (ret) 2095 - return ret; 2096 - } 2097 - 2098 - return ret; 2099 - } 2100 - 2101 2062 int smu_v11_0_get_current_pcie_link_width_level(struct smu_context *smu) 2102 2063 { 2103 2064 struct amdgpu_device *adev = smu->adev;