aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd/soc15_int.h
diff options
context:
space:
mode:
authorGravatar Hawking Zhang <Hawking.Zhang@amd.com> 2021-06-03 16:10:04 +0800
committerGravatar Alex Deucher <alexander.deucher@amd.com> 2021-06-07 14:57:24 -0400
commit4a1d4b6d38bdd842427dd525c1d4e1341de36d68 (patch)
treeca8e6094a490e2e54969f6f1a6618c83f2c21303 /drivers/gpu/drm/amd/amdkfd/soc15_int.h
parentdrm/amdkfd: pages_addr offset must be 0 for system range (diff)
downloadlinux-4a1d4b6d38bdd842427dd525c1d4e1341de36d68.tar.gz
linux-4a1d4b6d38bdd842427dd525c1d4e1341de36d68.tar.bz2
linux-4a1d4b6d38bdd842427dd525c1d4e1341de36d68.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/soc15_int.h')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/soc15_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/soc15_int.h b/drivers/gpu/drm/amd/amdkfd/soc15_int.h
index 0bc0b25cb410..daf3c44547d3 100644
--- a/drivers/gpu/drm/amd/amdkfd/soc15_int.h
+++ b/drivers/gpu/drm/amd/amdkfd/soc15_int.h
@@ -30,6 +30,7 @@
#define SOC15_INTSRC_SQ_INTERRUPT_MSG 239
#define SOC15_INTSRC_VMC_FAULT 0
#define SOC15_INTSRC_SDMA_TRAP 224
+#define SOC15_INTSRC_SDMA_ECC 220
#define SOC15_CLIENT_ID_FROM_IH_ENTRY(entry) (le32_to_cpu(entry[0]) & 0xff)