OSDN Git Service

drm/amdgpu: Remove unnecessary ras cap check
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 9 Aug 2023 11:07:50 +0000 (19:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2023 22:07:41 +0000 (18:07 -0400)
commit8b3a7a707c6c5f7ccde47cf2427a560675cc5202
tree445e59018807b7e5a3db5179f970aa5bd57b98b9
parent475968fe4a05b060864524a403e0d4a53f79aed0
drm/amdgpu: Remove unnecessary ras cap check

RAS global isr will only be invoked by hardware
interrupt. Don't need to query ras capability in isr
In addition, amdgpu_ras_interrupt_fatal_error_handler
ensures the isr won't be called from guest linux
side by accident. The RAS cap check in isr that
introduced to fix sriov crash is not needed any more

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c