Commit 20303ec5 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amdgpu: asd function needs to be unloaded in suspend phase

Unload ASD function in suspend phase.
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent dcb7fd82
...@@ -1840,6 +1840,12 @@ static int psp_suspend(void *handle) ...@@ -1840,6 +1840,12 @@ static int psp_suspend(void *handle)
} }
} }
ret = psp_asd_unload(psp);
if (ret) {
DRM_ERROR("Failed to unload asd\n");
return ret;
}
ret = psp_ring_stop(psp, PSP_RING_TYPE__KM); ret = psp_ring_stop(psp, PSP_RING_TYPE__KM);
if (ret) { if (ret) {
DRM_ERROR("PSP ring stop failed\n"); DRM_ERROR("PSP ring stop failed\n");
......
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