diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-06-13 18:47:58 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-07-14 10:11:29 -0400 |
commit | fbf6dc7ac7291841f53367d461a01a8e8bad0369 (patch) | |
tree | 43153f9c70b7ada6e274819d5b12403ac14f79eb /drivers/gpu/drm/radeon/sid.h | |
parent | 54e2e49ce28ff7ac67b93e7e9e44702552b04a69 (diff) |
drm/radeon: add fault decode function for SI (v2)
Helpful for debugging GPUVM errors as we can see what
hw block and page generated the fault in the log.
v2: simplify fault decoding
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/sid.h')
-rw-r--r-- | drivers/gpu/drm/radeon/sid.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/sid.h b/drivers/gpu/drm/radeon/sid.h index 12a20eb77d0c..2c8da27a929f 100644 --- a/drivers/gpu/drm/radeon/sid.h +++ b/drivers/gpu/drm/radeon/sid.h | |||
@@ -367,6 +367,20 @@ | |||
367 | 367 | ||
368 | #define VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x14FC | 368 | #define VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x14FC |
369 | #define VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x14DC | 369 | #define VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x14DC |
370 | #define PROTECTIONS_MASK (0xf << 0) | ||
371 | #define PROTECTIONS_SHIFT 0 | ||
372 | /* bit 0: range | ||
373 | * bit 1: pde0 | ||
374 | * bit 2: valid | ||
375 | * bit 3: read | ||
376 | * bit 4: write | ||
377 | */ | ||
378 | #define MEMORY_CLIENT_ID_MASK (0xff << 12) | ||
379 | #define MEMORY_CLIENT_ID_SHIFT 12 | ||
380 | #define MEMORY_CLIENT_RW_MASK (1 << 24) | ||
381 | #define MEMORY_CLIENT_RW_SHIFT 24 | ||
382 | #define FAULT_VMID_MASK (0xf << 25) | ||
383 | #define FAULT_VMID_SHIFT 25 | ||
370 | 384 | ||
371 | #define VM_INVALIDATE_REQUEST 0x1478 | 385 | #define VM_INVALIDATE_REQUEST 0x1478 |
372 | #define VM_INVALIDATE_RESPONSE 0x147c | 386 | #define VM_INVALIDATE_RESPONSE 0x147c |