drm/amdkfd: add sdma poison consumption handling
authorHawking Zhang <Hawking.Zhang@amd.com>
Thu, 3 Jun 2021 08:10:04 +0000 (16:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Jun 2021 18:57:24 +0000 (14:57 -0400)
commit4a1d4b6d38bdd842427dd525c1d4e1341de36d68
treeca8e6094a490e2e54969f6f1a6618c83f2c21303
parent0dc2bafb08c053240e5fd913a041b9885ab947f1
drm/amdkfd: add sdma poison consumption handling

Follow the same apporach as GFX to handle SDMA
poison consumption. Send SIGBUS to application
when receives SDMA_ECC interrupt and issue gpu
reset either mode 2 or mode 1 to get the engine
back

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Dennis Li<dennis.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
drivers/gpu/drm/amd/amdkfd/soc15_int.h