Commit e160e4db authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: fix tonga smu resume

Need to make sure smu buffers are pinned on resume.  This
matches what Fiji does.

Cc: stable@vger.kernel.org
Reviewed-by: default avatarJunwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarKen Wang <Qingqing.Wang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e9c5e740
...@@ -122,25 +122,12 @@ static int tonga_dpm_hw_fini(void *handle) ...@@ -122,25 +122,12 @@ static int tonga_dpm_hw_fini(void *handle)
static int tonga_dpm_suspend(void *handle) static int tonga_dpm_suspend(void *handle)
{ {
return 0; return tonga_dpm_hw_fini(handle);
} }
static int tonga_dpm_resume(void *handle) static int tonga_dpm_resume(void *handle)
{ {
int ret; return tonga_dpm_hw_init(handle);
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
mutex_lock(&adev->pm.mutex);
ret = tonga_smu_start(adev);
if (ret) {
DRM_ERROR("SMU start failed\n");
goto fail;
}
fail:
mutex_unlock(&adev->pm.mutex);
return ret;
} }
static int tonga_dpm_set_clockgating_state(void *handle, static int tonga_dpm_set_clockgating_state(void *handle,
......
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