drm/amdgpu/nbio: add functions to query ras specific interrupt status
authorHawking Zhang <Hawking.Zhang@amd.com>
Thu, 30 May 2019 03:57:20 +0000 (11:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:11:03 +0000 (17:11 -0500)
commit4241863afce118b32cda623c1b0999af0cb42a11
tree2b8a6fa3ba1b63273d049194e8e987858fddd5a6
parentbebc076285458ca6caa3246aa9c13ac062e14835
drm/amdgpu/nbio: add functions to query ras specific interrupt status

ras_controller_interrupt and err_event_interrupt are ras specific interrupts.
add functions to check their status and ack them if they are generated. both
funcitons should only be invoked in ISR when BIF ring is disabled or even not
initialized.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c