drm/amdgpu: Add a check to avoid panic because of unexpected irqs
authorxinhui pan <xinhui.pan@amd.com>
Tue, 9 Apr 2019 08:53:08 +0000 (16:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:49:40 +0000 (13:49 -0500)
commit14cfde84e33e0c5bbb8c30e0c309c29e92d4118a
treee61882b5aa782b35054015df82f4f9bc645825b6
parent7dd609da9b4e8bc4a5725392c3e528ad65cfe100
drm/amdgpu: Add a check to avoid panic because of unexpected irqs

IP initialize ras in late_init, because of the BUGs of PSP or any
other components, driver receives unexpected irqs. It is ok to add such
check anyway.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c