AMD General

Reviewed-by: Tao Zhou <[email protected]>

> -----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.
>
> Signed-off-by: Ce Sun <[email protected]>
> ---
>  drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c
> b/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c
> index 7ca2f33f2cf0..06b072737ac9 100644
> --- a/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c
> +++ b/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mp1.c
> @@ -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;
>  }
> --
> 2.34.1

Reply via email to