aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
diff options
context:
space:
mode:
authorStanley.Yang <[email protected]>2022-04-27 04:16:51 +0000
committerAlex Deucher <[email protected]>2022-05-26 18:56:32 +0000
commit950d64250fba5fbb8c290f692de8ffdee380726c (patch)
treee4f1ddc031f39a1aa1169a187eabcc515e374a19 /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
parentdrm/amdgpu/pm: smu_v13_0_4: delete duplicate condition (diff)
downloadkernel-950d64250fba5fbb8c290f692de8ffdee380726c.tar.gz
kernel-950d64250fba5fbb8c290f692de8ffdee380726c.zip
drm/amdgpu: support ras on SRIOV
support umc/gfx/sdma ras on guest side Changed from V1: move sriov judgment in amdgpu_ras_interrupt_fatal_error_handler Signed-off-by: Stanley.Yang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
index 8e221a1ba937..42c1f050542f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
@@ -124,6 +124,10 @@ int amdgpu_sdma_process_ras_data_cb(struct amdgpu_device *adev,
struct amdgpu_iv_entry *entry)
{
kgd2kfd_set_sram_ecc_flag(adev->kfd.dev);
+
+ if (amdgpu_sriov_vf(adev))
+ return AMDGPU_RAS_SUCCESS;
+
amdgpu_ras_reset_gpu(adev);
return AMDGPU_RAS_SUCCESS;