Skip to content

Commit fd784a4

Browse files
YiPeng Chaialexdeucher
authored andcommitted
drm/amdgpu: add gfx v11_0_3 fed irq handling for sriov
Add gfx v11_0_3 fed irq handling for sriov. Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent dd29944 commit fd784a4

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

drivers/gpu/drm/amd/amdgpu/gfx_v11_0_3.c

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,18 @@ static int gfx_v11_0_3_rlc_gc_fed_irq(struct amdgpu_device *adev,
6262
return -EINVAL;
6363
}
6464

65-
ih_data.head = *ras_if;
66-
6765
dev_warn(adev->dev, "RLC %s FED IRQ\n", ras_if->name);
68-
amdgpu_ras_interrupt_dispatch(adev, &ih_data);
66+
67+
if (!amdgpu_sriov_vf(adev)) {
68+
ih_data.head = *ras_if;
69+
amdgpu_ras_interrupt_dispatch(adev, &ih_data);
70+
} else {
71+
if (adev->virt.ops && adev->virt.ops->ras_poison_handler)
72+
adev->virt.ops->ras_poison_handler(adev);
73+
else
74+
dev_warn(adev->dev,
75+
"No ras_poison_handler interface in SRIOV for %s!\n", ras_if->name);
76+
}
6977

7078
return 0;
7179
}

0 commit comments

Comments
 (0)