[AMD Official Use Only - General]

Reviewed-by: John Clements <john.cleme...@amd.com>

-----Original Message-----
From: amd-gfx <amd-gfx-boun...@lists.freedesktop.org> On Behalf Of Candice Li
Sent: Friday, May 20, 2022 9:21 PM
To: amd-gfx@lists.freedesktop.org
Cc: Li, Candice <candice...@amd.com>
Subject: [PATCH] drm/amdgpu: Resolve pcie_bif RAS recovery bug

Check shared buf instead of init flag for xgmi ta shared buf init during xgmi 
ta initialization.

Signed-off-by: Candice Li <candice...@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 214e4e89a02876..e9411c28d88ba8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -1177,7 +1177,7 @@ int psp_xgmi_initialize(struct psp_context *psp, bool 
set_extended_data, bool lo
        psp->xgmi_context.context.mem_context.shared_mem_size = 
PSP_XGMI_SHARED_MEM_SIZE;
        psp->xgmi_context.context.ta_load_type = GFX_CMD_ID_LOAD_TA;
 
-       if (!psp->xgmi_context.context.initialized) {
+       if (!psp->xgmi_context.context.mem_context.shared_buf) {
                ret = psp_ta_init_shared_buf(psp, 
&psp->xgmi_context.context.mem_context);
                if (ret)
                        return ret;
--
2.17.1

Reply via email to