]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Implement unrecoverable error message handling for VFs
authorEllen Pan <yunru.pan@amd.com>
Tue, 29 Apr 2025 21:18:44 +0000 (17:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 May 2025 21:43:13 +0000 (17:43 -0400)
commit086809c82c96116aed78f762e4f1d61a4e0210a7
tree3cf9ef1bb98475b4432599191ffab84a23f494da
parent6be34e1d1f0efc624a7505ac98609d8c6e732b85
drm/amdgpu: Implement unrecoverable error message handling for VFs

This notification may arrive in VF mailbox while polling for response from
another event.

This patches covers the following scenarios:

- If VF is already in RMA state, then do not attempt to contact the host.
  Host will ignore the VF after sending the notification.

- If the notification is detected during polling, then set the RMA status,
  and return error to caller.

- If the notification arrives by interrupt, then set the RMA status and
  queue a reset.  This reset will fail and VF will stop runtime services.

Reviewed-by: Shravan Kumar Gande <Shravankumar.Gande@amd.com>
Signed-off-by: Victor Skvortsov <victor.skvortsov@amd.com>
Signed-off-by: Ellen Pan <yunru.pan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.h