Skip to contentSkip to conversation

drm/amdgpu: enable RAS poison mode for APU

PATCH In review Tao Zhou 2 participants 2 messages Oct 20, 2023

Subsystems (2)
lore
Share & tools
lore

Tao Zhou

author
#0 lore raw

PATCH 1/1 drm/amdgpu: enable RAS poison mode for APU

Enable it by default on APU platform.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -1
index 95c181cd1fea..a41cab0a2f9c 100644
@@ -2710,7 +2710,8 @@ static void amdgpu_ras_query_poison_mode(struct amdgpu_device *adev)
 		return;
 
 	/* Init poison supported flag, the default value is false */
-	if (adev->gmc.xgmi.connected_to_cpu) {
+	if (adev->gmc.xgmi.connected_to_cpu ||
+	    adev->gmc.is_app_apu) {
 		/* enabled by default when GPU is connected to CPU */
 		con->poison_supported = true;
 	} else if (adev->df.funcs &&
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

Regards,
Stanley

Quoted 33 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Tao Zhou
Sent: Friday, October 20, 2023 6:26 PM
To: [email protected]
Cc: Zhou1, Tao <[email protected]>
Subject: [PATCH] drm/amdgpu: enable RAS poison mode for APU

Enable it by default on APU platform.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -1
index 95c181cd1fea..a41cab0a2f9c 100644
@@ -2710,7 +2710,8 @@ static void
 amdgpu_ras_query_poison_mode(struct amdgpu_device *adev)
              return;
 
      /* Init poison supported flag, the default value is false */
-     if (adev->gmc.xgmi.connected_to_cpu) {
+     if (adev->gmc.xgmi.connected_to_cpu ||
+         adev->gmc.is_app_apu) {
              /* enabled by default when GPU is connected to CPU */
              con->poison_supported = true;
      } else if (adev->df.funcs &&

--
2.35.1