From: Tao Zhou Date: Fri, 15 Oct 2021 06:29:38 +0000 (+0800) Subject: drm/amdgpu: load PSP RL in resume path X-Git-Tag: v5.16-rc1~140^2~5^2~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c72942c167c1329f0aaa348e764f52e0aac09459;p=thirdparty%2Flinux.git drm/amdgpu: load PSP RL in resume path Some registers' access will fail without PSP RL after resume. Signed-off-by: Tao Zhou Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 2bfe0682e0e69..88274c254c76f 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