summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong Zhao <Yong.Zhao@amd.com>2019-08-13 21:04:26 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-08-15 18:58:02 +0300
commit4e0ae5e21436d8379404b356b8c807b42fbf24be (patch)
tree85dd7a136b17e7506df991f535ef530ae3d3d26c
parent5413fce4b2147f8ebd0350ee5fdf82f9c30fd7dc (diff)
downloadlinux-4e0ae5e21436d8379404b356b8c807b42fbf24be.tar.xz
drm/amdgpu: Add printing for RW extracted from VM_L2_PROTECTION_FAULT_STATUS
RW is also useful in most cases. Signed-off-by: Yong Zhao <Yong.Zhao@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 7da355bf6d89..e5949d7f3b93 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -391,6 +391,9 @@ static int gmc_v9_0_process_interrupt(struct amdgpu_device *adev,
dev_err(adev->dev, "\t MAPPING_ERROR: 0x%lx\n",
REG_GET_FIELD(status,
VM_L2_PROTECTION_FAULT_STATUS, MAPPING_ERROR));
+ dev_err(adev->dev, "\t RW: 0x%lx\n",
+ REG_GET_FIELD(status,
+ VM_L2_PROTECTION_FAULT_STATUS, RW));
}
}