Skip to contentSkip to conversation

drm/amdgpu: Skip virt_exchange_init on SDMA poison consumption

PATCH In review Victor Skvortsov 2 participants 2 messages Mar 13, 2024 – Mar 14, 2024

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

PATCH 1/1 drm/amdgpu: Skip virt_exchange_init on SDMA poison consumption

From: Victor Skvortsov <[email protected]>

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

---
 drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c +2 -1
index 77f5b55decf9..a1bad772d932 100644
@@ -444,7 +444,8 @@ 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);
-		amdgpu_virt_init_data_exchange(adev);
+		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]

-----Original Message-----
From: Skvortsov, Victor <[email protected]>
Sent: Tuesday, March 12, 2024 10:09 PM
To: Skvortsov, Victor <[email protected]>; Chai, Thomas <[email protected]>; Zhang, Hawking <[email protected]>; Luo, Zhigang <[email protected]>; [email protected]
Cc: Skvortsov, Victor <[email protected]>
Subject: [PATCH] drm/amdgpu: Skip virt_exchange_init on SDMA poison consumption

From: Victor Skvortsov <[email protected]>

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

---
 drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c +2 -1
index 77f5b55decf9..a1bad772d932 100644
@@ -444,7 +444,8 @@ 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);
-               amdgpu_virt_init_data_exchange(adev);
+               if (block != AMDGPU_RAS_BLOCK__SDMA)
+                       amdgpu_virt_init_data_exchange(adev);
        }
 }
 

--
2.25.1