OSDN Git Service

drm/amdgpu: load PSP RL in resume path
authorTao Zhou <tao.zhou1@amd.com>
Fri, 15 Oct 2021 06:29:38 +0000 (14:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Oct 2021 21:14:33 +0000 (17:14 -0400)
Some registers' access will fail without PSP RL after resume.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 2bfe068..88274c2 100644 (file)
@@ -2623,6 +2623,12 @@ static int psp_resume(void *handle)
                goto failed;
        }
 
+       ret = psp_rl_load(adev);
+       if (ret) {
+               dev_err(adev->dev, "PSP load RL failed!\n");
+               goto failed;
+       }
+
        if (adev->gmc.xgmi.num_physical_nodes > 1) {
                ret = psp_xgmi_initialize(psp, false, true);
                /* Warning the XGMI seesion initialize failure