[AMD Official Use Only - General]

Reviewed-by: Hawking Zhang <[email protected]>

Regards,
Hawking
-----Original Message-----
From: Luo, Zhigang <[email protected]>
Sent: Wednesday, April 17, 2024 15:54
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Saye, Sashank 
<[email protected]>; Chan, Hing Pong <[email protected]>; Luo, Zhigang 
<[email protected]>
Subject: [PATCH] drm/amdgpu: remove virt_init_data_exchange from poison 
consumption handler

Host will initiate an FLR for all poison consumption.
Guest should wait for FLR message to re-init data exchange.

Signed-off-by: Zhigang Luo <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c 
b/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c
index 89992c1c9a62..aba00d961627 100644
--- a/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c
+++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c
@@ -446,8 +446,6 @@ static void xgpu_nv_ras_poison_handler(struct amdgpu_device 
*adev,
                amdgpu_virt_fini_data_exchange(adev);
                xgpu_nv_send_access_requests_with_param(adev,
                                        IDH_RAS_POISON, block, 0, 0);
-               if (block != AMDGPU_RAS_BLOCK__SDMA)
-                       amdgpu_virt_init_data_exchange(adev);
        }
 }

--
2.25.1

Reply via email to