mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 13:32:07 -04:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user