Skip to contentSkip to conversation

drm/amdgpu: remove virt_init_data_exchange from poison consumption handler

PATCH In review Zhigang Luo 2 participants 2 messages Apr 17, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c +0 -2
index 89992c1c9a62..aba00d961627 100644
@@ -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);
 	}
 }
 
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

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.

---
 drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c +0 -2
index 89992c1c9a62..aba00d961627 100644
@@ -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