aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-09-28 06:31:26 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-10-14 16:16:40 -0400
commitd9c13156a628cc9f8f062f2c10e2bff55b92aaab (patch)
tree9324e82899a044032cfe1be0800786942fbee398 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentce0c6bcda6d0d9fc9df65dccb46a68b79ba6f018 (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.h6
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;
79extern int amdgpu_deep_color; 79extern int amdgpu_deep_color;
80extern int amdgpu_vm_size; 80extern int amdgpu_vm_size;
81extern int amdgpu_vm_block_size; 81extern int amdgpu_vm_block_size;
82extern int amdgpu_vm_fault_stop;
82extern int amdgpu_enable_scheduler; 83extern int amdgpu_enable_scheduler;
83extern int amdgpu_sched_jobs; 84extern int amdgpu_sched_jobs;
84extern int amdgpu_sched_hw_submission; 85extern 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
963struct amdgpu_vm_pt { 969struct amdgpu_vm_pt {
964 struct amdgpu_bo *bo; 970 struct amdgpu_bo *bo;
965 uint64_t addr; 971 uint64_t addr;