Commit 7a1105bd authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/powerplay: drop unnecessary wrappers

These APIs are used in amdgpu_smu.c only. Thus these wrappers
are unnecessary.
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1fdfe8ca
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment