Commit a60831ea authored by Lang Yu's avatar Lang Yu Committed by Alex Deucher

drm/amdgpu: remove power on/off SDMA in SMU hw_init/fini()

Currently, we don't find some neccesities to power on/off
SDMA in SMU hw_init/fini(). It makes more sense in SDMA
hw_init/fini().
Signed-off-by: default avatarLang Yu <lang.yu@amd.com>
Reviewed-by: default avatarKevin Wang <kevinyang.wang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0f7ef0b9
...@@ -1350,7 +1350,6 @@ static int smu_hw_init(void *handle) ...@@ -1350,7 +1350,6 @@ static int smu_hw_init(void *handle)
} }
if (smu->is_apu) { if (smu->is_apu) {
smu_powergate_sdma(&adev->smu, false);
smu_dpm_set_vcn_enable(smu, true); smu_dpm_set_vcn_enable(smu, true);
smu_dpm_set_jpeg_enable(smu, true); smu_dpm_set_jpeg_enable(smu, true);
smu_set_gfx_cgpg(&adev->smu, true); smu_set_gfx_cgpg(&adev->smu, true);
...@@ -1512,10 +1511,6 @@ static int smu_hw_fini(void *handle) ...@@ -1512,10 +1511,6 @@ static int smu_hw_fini(void *handle)
if (amdgpu_sriov_vf(adev)&& !amdgpu_sriov_is_pp_one_vf(adev)) if (amdgpu_sriov_vf(adev)&& !amdgpu_sriov_is_pp_one_vf(adev))
return 0; return 0;
if (smu->is_apu) {
smu_powergate_sdma(&adev->smu, true);
}
smu_dpm_set_vcn_enable(smu, false); smu_dpm_set_vcn_enable(smu, false);
smu_dpm_set_jpeg_enable(smu, false); smu_dpm_set_jpeg_enable(smu, false);
......
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