aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
diff options
context:
space:
mode:
authorTao Zhou <[email protected]>2021-10-15 06:29:38 +0000
committerAlex Deucher <[email protected]>2021-10-19 21:14:33 +0000
commitc72942c167c1329f0aaa348e764f52e0aac09459 (patch)
treecf412ce6e6b95fb54ef9bf89f65b57306a1adb1f /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
parentdrm/amdkfd: Fix an inappropriate error handling in allloc memory of gpu (diff)
downloadkernel-c72942c167c1329f0aaa348e764f52e0aac09459.tar.gz
kernel-c72942c167c1329f0aaa348e764f52e0aac09459.zip
drm/amdgpu: load PSP RL in resume path
Some registers' access will fail without PSP RL after resume. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 2bfe0682e0e6..88274c254c76 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -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