Skip to contentSkip to conversation

drm/amdgpu/ras: allow ClearMcaOnRead during GPU recover resume

PATCH In review Ce Sun 2 participants 2 messages Sep 22 – Sep 23

Subsystems (2)
lore
Share & tools
lore

Ce Sun

author
#0 lore raw

PATCH 1/1 drm/amdgpu/ras: allow ClearMcaOnRead during GPU recover resume

Allow RAS_MP1_MSG_ClearMcaOnRead MP1 message in Mode1 reset, to support device debug mode setup on GPU recovery resume.

---
 drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c +4 -2
index 7ca2f33f2cf0..06b072737ac9 100644
@@ -92,9 +92,11 @@ static int amdgpu_ras_send_mp1_msg(struct ras_core_context *ras_core, u32 msg_id
 		ret = amdgpu_smu_ras_send_msg(adev, smu_msg,
 				params, num_params, read_args, num_read_args);
 		up_read(&adev->reset_domain->sem);
-	} else {
+	} else if (msg_id == RAS_MP1_MSG_ClearMcaOnRead)
+		ret = amdgpu_smu_ras_send_msg(adev, smu_msg,
+				params, num_params, read_args, num_read_args);
+	else
 		ret = -RAS_CORE_GPU_IN_MODE1_RESET;
-	}
 
 	return ret;
 }
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

AMD General

Quoted 40 lines

-----Original Message-----
From: Sun, Ce(Overlord) <[email protected]>
Sent: Tuesday, September 22, 2026 10:16 PM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Chai, Thomas <[email protected]>; Zhou1, Tao <[email protected]>; Yang, Stanley <[email protected]>; Sun, Ce(Overlord) <[email protected]>
Subject: [PATCH] drm/amdgpu/ras: allow ClearMcaOnRead during GPU recover resume

Allow RAS_MP1_MSG_ClearMcaOnRead MP1 message in Mode1 reset, to support device debug mode setup on GPU recovery resume.

---
 drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c +0 -0
index 7ca2f33f2cf0..06b072737ac9 100644
@@ -92,9 +92,11 @@ static int amdgpu_ras_send_mp1_msg(struct

ras_core_context *ras_core, u32 msg_id

              ret = amdgpu_smu_ras_send_msg(adev, smu_msg,
                              params, num_params, read_args, num_read_args);
              up_read(&adev->reset_domain->sem);
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c +4 -3
-     } else {
+     } else if (msg_id == RAS_MP1_MSG_ClearMcaOnRead)
+             ret = amdgpu_smu_ras_send_msg(adev, smu_msg,
+                             params, num_params, read_args, num_read_args);
+     else
              ret = -RAS_CORE_GPU_IN_MODE1_RESET;
-     }
 
      return ret;
 }
--

2.34.1