Skip to content

Commit

Permalink
drm/amdgpu: asd function needs to be unloaded in suspend phase
Browse files Browse the repository at this point in the history
Unload ASD function in suspend phase.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Huang Rui authored and Alex Deucher committed Jul 9, 2020
1 parent dcb7fd8 commit 20303ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
if (ret) {
DRM_ERROR("PSP ring stop failed\n");
Expand Down

0 comments on commit 20303ec

Please sign in to comment.