diff options
author | Christian König <christian.koenig@amd.com> | 2015-09-28 06:31:26 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-10-14 16:16:40 -0400 |
commit | d9c13156a628cc9f8f062f2c10e2bff55b92aaab (patch) | |
tree | 9324e82899a044032cfe1be0800786942fbee398 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | ce0c6bcda6d0d9fc9df65dccb46a68b79ba6f018 (diff) |
drm/amdgpu: add option to stop on VM fault
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index afc984806c4c..a3dbbd1fc060 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -79,6 +79,7 @@ extern int amdgpu_bapm; | |||
79 | extern int amdgpu_deep_color; | 79 | extern int amdgpu_deep_color; |
80 | extern int amdgpu_vm_size; | 80 | extern int amdgpu_vm_size; |
81 | extern int amdgpu_vm_block_size; | 81 | extern int amdgpu_vm_block_size; |
82 | extern int amdgpu_vm_fault_stop; | ||
82 | extern int amdgpu_enable_scheduler; | 83 | extern int amdgpu_enable_scheduler; |
83 | extern int amdgpu_sched_jobs; | 84 | extern int amdgpu_sched_jobs; |
84 | extern int amdgpu_sched_hw_submission; | 85 | extern int amdgpu_sched_hw_submission; |
@@ -960,6 +961,11 @@ struct amdgpu_ring { | |||
960 | #define AMDGPU_PTE_FRAG_64KB (4 << 7) | 961 | #define AMDGPU_PTE_FRAG_64KB (4 << 7) |
961 | #define AMDGPU_LOG2_PAGES_PER_FRAG 4 | 962 | #define AMDGPU_LOG2_PAGES_PER_FRAG 4 |
962 | 963 | ||
964 | /* How to programm VM fault handling */ | ||
965 | #define AMDGPU_VM_FAULT_STOP_NEVER 0 | ||
966 | #define AMDGPU_VM_FAULT_STOP_FIRST 1 | ||
967 | #define AMDGPU_VM_FAULT_STOP_ALWAYS 2 | ||
968 | |||
963 | struct amdgpu_vm_pt { | 969 | struct amdgpu_vm_pt { |
964 | struct amdgpu_bo *bo; | 970 | struct amdgpu_bo *bo; |
965 | uint64_t addr; | 971 | uint64_t addr; |