From: Yong Zhao Date: Tue, 13 Aug 2019 18:04:26 +0000 (-0400) Subject: drm/amdgpu: Add printing for RW extracted from VM_L2_PROTECTION_FAULT_STATUS X-Git-Tag: v5.4-rc1~106^2~7^2~137 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=4e0ae5e21436d8379404b356b8c807b42fbf24be;p=linux.git 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 Reviewed-by: Christian König Signed-off-by: Alex Deucher --- 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)); } }