[PATCH 09/14] drm/amd/amdgpu: Add hang detect support for MES v12.0
Jesse.Zhang
Jesse.Zhang at amd.com
Fri May 30 09:00:10 UTC 2025
Adds the hang detection path for GFX queue resets in MES v12.0,
The change implements:
- Handling of the hang_detect_then_reset flag in mes_v12_0_reset_hw_queue
Signed-off-by: Jesse Zhang <jesse.zhang at amd.com>
---
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c
index b4f17332d466..f763f91ff9d7 100644
--- a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c
@@ -864,6 +864,9 @@ static int mes_v12_0_reset_hw_queue(struct amdgpu_mes *mes,
mes_reset_queue_pkt.doorbell_offset_lp = input->doorbell_offset;
mes_reset_queue_pkt.wptr_addr_lp = input->wptr_addr;
mes_reset_queue_pkt.vmid_id_lp = input->vmid;
+ } else if (input->hang_detect_then_reset) {
+ mes_reset_queue_pkt.hang_detect_then_reset = 1;
+ mes_reset_queue_pkt.doorbell_offset = input->doorbell_offset;
} else {
mes_reset_queue_pkt.reset_queue_only = 1;
mes_reset_queue_pkt.doorbell_offset = input->doorbell_offset;
--
2.49.0
More information about the amd-gfx
mailing list