drm/amdgpu: Add printing for RW extracted from VM_L2_PROTECTION_FAULT_STATUS
authorYong Zhao <Yong.Zhao@amd.com>
Tue, 13 Aug 2019 18:04:26 +0000 (14:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:58:02 +0000 (10:58 -0500)
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>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index 7da355bf6d89773bad3ee528c4b8c55f88d94aee..e5949d7f3b932b2a8d7f786a7958bfb47fa562a2 100644 (file)
@@ -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));
 
                }
        }