mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 17:04:50 -04:00
drm/amd/powerplay: drop unnecessary wrappers
These APIs are used in amdgpu_smu.c only. Thus these wrappers are unnecessary. 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:
@@ -1328,8 +1328,8 @@ static int smu_hw_init(void *handle)
|
||||
|
||||
if (smu->is_apu) {
|
||||
smu_powergate_sdma(&adev->smu, false);
|
||||
smu_powergate_vcn(&adev->smu, false);
|
||||
smu_powergate_jpeg(&adev->smu, false);
|
||||
smu_dpm_set_uvd_enable(smu, true);
|
||||
smu_dpm_set_jpeg_enable(smu, true);
|
||||
smu_set_gfx_cgpg(&adev->smu, true);
|
||||
}
|
||||
|
||||
@@ -1460,8 +1460,8 @@ static int smu_hw_fini(void *handle)
|
||||
|
||||
if (smu->is_apu) {
|
||||
smu_powergate_sdma(&adev->smu, true);
|
||||
smu_powergate_vcn(&adev->smu, true);
|
||||
smu_powergate_jpeg(&adev->smu, true);
|
||||
smu_dpm_set_uvd_enable(smu, false);
|
||||
smu_dpm_set_jpeg_enable(smu, false);
|
||||
}
|
||||
|
||||
if (!smu->pm_enabled)
|
||||
@@ -2832,19 +2832,3 @@ uint32_t smu_get_pptable_power_limit(struct smu_context *smu)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int smu_powergate_vcn(struct smu_context *smu, bool gate)
|
||||
{
|
||||
if (!smu->is_apu)
|
||||
return 0;
|
||||
|
||||
return smu_dpm_set_uvd_enable(smu, !gate);
|
||||
}
|
||||
|
||||
int smu_powergate_jpeg(struct smu_context *smu, bool gate)
|
||||
{
|
||||
if (!smu->is_apu)
|
||||
return 0;
|
||||
|
||||
return smu_dpm_set_jpeg_enable(smu, !gate);
|
||||
}
|
||||
|
||||
@@ -213,7 +213,4 @@ static inline int smu_send_smc_msg(struct smu_context *smu, enum smu_message_typ
|
||||
#define smu_log_thermal_throttling(smu) \
|
||||
((smu)->ppt_funcs->log_thermal_throttling_event ? (smu)->ppt_funcs->log_thermal_throttling_event((smu)) : 0)
|
||||
|
||||
int smu_powergate_vcn(struct smu_context *smu, bool gate);
|
||||
int smu_powergate_jpeg(struct smu_context *smu, bool gate);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user