dmr/amdgpu: Fix crash on SRIOV for ERREVENT_ATHUB_INTERRUPT interrupt.

Alex Deucher alexdeucher at gmail.com
Tue Oct 15 14:31:43 UTC 2019


On Tue, Oct 15, 2019 at 10:27 AM Andrey Grodzovsky
<andrey.grodzovsky at amd.com> wrote:
>
> Ignre the ERREVENT_ATHUB_INTERRUPT for systems without RAS.
>
> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky at amd.com>
> Reviewed-and-tested-by: Jack Zhang <Jack.Zhang1 at amd.com>

Acked-by: Alex Deucher <alexander.deucher at amd.com>

>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index 84d8c33..cd84332 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -1844,6 +1844,12 @@ int amdgpu_ras_fini(struct amdgpu_device *adev)
>
>  void amdgpu_ras_global_ras_isr(struct amdgpu_device *adev)
>  {
> +       uint32_t hw_supported, supported;
> +
> +       amdgpu_ras_check_supported(adev, &hw_supported, &supported);
> +       if (!hw_supported)
> +               return;
> +
>         if (atomic_cmpxchg(&amdgpu_ras_in_intr, 0, 1) == 0) {
>                 DRM_WARN("RAS event of type ERREVENT_ATHUB_INTERRUPT detected!\n");
>
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list