summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
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/amdgpu/gmc_v10_0.c
parent0ef6845c8c1c1d46bda4e8325f6f23b199e8daac (diff)
downloadlinux-be14729a3362e36dc6cd23af9f840720caf26fc9.tar.gz
linux-be14729a3362e36dc6cd23af9f840720caf26fc9.tar.bz2
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/amdgpu/gmc_v10_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
index 3b7c6c31fce1..58352ca3d4f0 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
@@ -152,8 +152,9 @@ static int gmc_v10_0_process_interrupt(struct amdgpu_device *adev,
entry->src_id, entry->ring_id, entry->vmid,
entry->pasid, task_info.process_name, task_info.tgid,
task_info.task_name, task_info.pid);
- dev_err(adev->dev, " in page starting at address 0x%012llx from client %d\n",
- addr, entry->client_id);
+ dev_err(adev->dev, " in page starting at address 0x%016llx from client 0x%x (%s)\n",
+ addr, entry->client_id,
+ soc15_ih_clientid_name[entry->client_id]);
if (!amdgpu_sriov_vf(adev))
hub->vmhub_funcs->print_l2_protection_fault_status(adev,