drm/amdgpu: asd function needs to be unloaded in suspend phase
authorHuang Rui <ray.huang@amd.com>
Tue, 30 Jun 2020 02:43:21 +0000 (10:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jul 2020 18:22:08 +0000 (14:22 -0400)
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
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 7301fdcfb8bce2ded20f147dbd80111af2349858..83bceb65ff801f3e4daad494c277b3a8c8b97833 100644 (file)
@@ -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");