drm/amdgpu: load PSP RL in resume path
Subsystems (2)
PATCH 1/1 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]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +6 -0
@@ -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
Signature · 1 line
2.17.1
[AMD Official Use Only]
Reviewed-by Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Tao Zhou
Sent: Friday, October 15, 2021 15:28
To: [email protected]; Zhang, Hawking <[email protected]>; Clements, John <[email protected]>; Yang, Stanley <[email protected]>
Cc: Zhou1, Tao <[email protected]>
Subject: [PATCH] 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]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +6 -0
@@ -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
Signature · 1 line
2.17.1