aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include/soc15_ih_clientid.h
diff options
context:
space:
mode:
authorYong Zhao <Yong.Zhao@amd.com>2020-08-21 14:01:18 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-03-23 22:51:40 -0400
commitbe14729a3362e36dc6cd23af9f840720caf26fc9 (patch)
treeaef2fc39ea43aa1e422af7abf9dd579078f3b0e0 /drivers/gpu/drm/amd/include/soc15_ih_clientid.h
parentdrm/amdkfd: Add aldebaran trap handler support (diff)
downloadlinux-be14729a3362e36dc6cd23af9f840720caf26fc9.tar.gz
linux-be14729a3362e36dc6cd23af9f840720caf26fc9.zip
drm/amdgpu: Print the IH client ID name when vm fault happens
This gives more information and improves productivity. Signed-off-by: Yong Zhao <Yong.Zhao@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include/soc15_ih_clientid.h')
-rw-r--r--drivers/gpu/drm/amd/include/soc15_ih_clientid.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/include/soc15_ih_clientid.h b/drivers/gpu/drm/amd/include/soc15_ih_clientid.h
index fb67bb55ed79..e3088c10bfff 100644
--- a/drivers/gpu/drm/amd/include/soc15_ih_clientid.h
+++ b/drivers/gpu/drm/amd/include/soc15_ih_clientid.h
@@ -24,8 +24,10 @@
#ifndef __SOC15_IH_CLIENTID_H__
#define __SOC15_IH_CLIENTID_H__
- /*
- * vega10+ IH clients
+/*
+ * Vega10+ IH clients
+ * Whenever this structure is updated, which should not happen, make sure
+ * soc15_ih_clientid_name in the below is also updated accordingly.
*/
enum soc15_ih_clientid {
SOC15_IH_CLIENTID_IH = 0x00,
@@ -74,6 +76,8 @@ enum soc15_ih_clientid {
SOC15_IH_CLIENTID_VMC1 = SOC15_IH_CLIENTID_PCIE0,
};
+extern const char *soc15_ih_clientid_name[];
+
#endif