dmr/amdgpu: Fix crash on SRIOV for ERREVENT_ATHUB_INTERRUPT interrupt.
Subsystems (2)
Ignre the ERREVENT_ATHUB_INTERRUPT for systems without RAS.
Signed-off-by Andrey Grodzovsky <[email protected]>
Reviewed-and-tested-by Jack Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +6 -0
@@ -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" );
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1571149661-4587-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Acked-byQuoted 5 lines · Andrey Grodzovsky
Ignre the
ERREVENT_ATHUB_INTERRUPTfor systems without RAS.Signed-off-by Andrey Grodzovsky <[email protected]>Reviewed-and-tested-by Jack Zhang <[email protected]>
Acked-by Alex Deucher <[email protected]>
Quoted 25 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +6
-1@@ -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
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx