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: drop unused SMU v13 API

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>

authored by

Evan Quan and committed by
Alex Deucher
e1dd28fc 50371be6

-44
-5
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h
··· 243 243 enum smu_clk_type clk_type, 244 244 struct smu_13_0_dpm_table *single_dpm_table); 245 245 246 - int smu_v13_0_get_dpm_level_range(struct smu_context *smu, 247 - enum smu_clk_type clk_type, 248 - uint32_t *min_value, 249 - uint32_t *max_value); 250 - 251 246 int smu_v13_0_get_current_pcie_link_width_level(struct smu_context *smu); 252 247 253 248 int smu_v13_0_get_current_pcie_link_width(struct smu_context *smu);
-39
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
··· 2062 2062 return 0; 2063 2063 } 2064 2064 2065 - int smu_v13_0_get_dpm_level_range(struct smu_context *smu, 2066 - enum smu_clk_type clk_type, 2067 - uint32_t *min_value, 2068 - uint32_t *max_value) 2069 - { 2070 - uint32_t level_count = 0; 2071 - int ret = 0; 2072 - 2073 - if (!min_value && !max_value) 2074 - return -EINVAL; 2075 - 2076 - if (min_value) { 2077 - /* by default, level 0 clock value as min value */ 2078 - ret = smu_v13_0_get_dpm_freq_by_index(smu, 2079 - clk_type, 2080 - 0, 2081 - min_value); 2082 - if (ret) 2083 - return ret; 2084 - } 2085 - 2086 - if (max_value) { 2087 - ret = smu_v13_0_get_dpm_level_count(smu, 2088 - clk_type, 2089 - &level_count); 2090 - if (ret) 2091 - return ret; 2092 - 2093 - ret = smu_v13_0_get_dpm_freq_by_index(smu, 2094 - clk_type, 2095 - level_count - 1, 2096 - max_value); 2097 - if (ret) 2098 - return ret; 2099 - } 2100 - 2101 - return ret; 2102 - } 2103 - 2104 2065 int smu_v13_0_get_current_pcie_link_width_level(struct smu_context *smu) 2105 2066 { 2106 2067 struct amdgpu_device *adev = smu->adev;