Skip to content

Commit 20303ec

Browse files
huangruialexdeucher
authored andcommitted
drm/amdgpu: asd function needs to be unloaded in suspend phase
Unload ASD function in suspend phase. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent dcb7fd8 commit 20303ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,6 +1840,12 @@ static int psp_suspend(void *handle)
18401840
}
18411841
}
18421842

1843+
ret = psp_asd_unload(psp);
1844+
if (ret) {
1845+
DRM_ERROR("Failed to unload asd\n");
1846+
return ret;
1847+
}
1848+
18431849
ret = psp_ring_stop(psp, PSP_RING_TYPE__KM);
18441850
if (ret) {
18451851
DRM_ERROR("PSP ring stop failed\n");

0 commit comments

Comments
 (0)