aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index 30f080364c97..061b99a18cb8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -75,11 +75,12 @@ struct amdgpu_bo_list_entry;
75/* PDE Block Fragment Size for VEGA10 */ 75/* PDE Block Fragment Size for VEGA10 */
76#define AMDGPU_PDE_BFS(a) ((uint64_t)a << 59) 76#define AMDGPU_PDE_BFS(a) ((uint64_t)a << 59)
77 77
78/* VEGA10 only */ 78
79/* For GFX9 */
79#define AMDGPU_PTE_MTYPE(a) ((uint64_t)a << 57) 80#define AMDGPU_PTE_MTYPE(a) ((uint64_t)a << 57)
80#define AMDGPU_PTE_MTYPE_MASK AMDGPU_PTE_MTYPE(3ULL) 81#define AMDGPU_PTE_MTYPE_MASK AMDGPU_PTE_MTYPE(3ULL)
81 82
82/* For Raven */ 83#define AMDGPU_MTYPE_NC 0
83#define AMDGPU_MTYPE_CC 2 84#define AMDGPU_MTYPE_CC 2
84 85
85#define AMDGPU_PTE_DEFAULT_ATC (AMDGPU_PTE_SYSTEM \ 86#define AMDGPU_PTE_DEFAULT_ATC (AMDGPU_PTE_SYSTEM \
@@ -167,9 +168,6 @@ struct amdgpu_vm {
167 /* tree of virtual addresses mapped */ 168 /* tree of virtual addresses mapped */
168 struct rb_root_cached va; 169 struct rb_root_cached va;
169 170
170 /* protecting invalidated */
171 spinlock_t status_lock;
172
173 /* BOs who needs a validation */ 171 /* BOs who needs a validation */
174 struct list_head evicted; 172 struct list_head evicted;
175 173
@@ -178,6 +176,10 @@ struct amdgpu_vm {
178 176
179 /* BOs moved, but not yet updated in the PT */ 177 /* BOs moved, but not yet updated in the PT */
180 struct list_head moved; 178 struct list_head moved;
179 spinlock_t moved_lock;
180
181 /* All BOs of this VM not currently in the state machine */
182 struct list_head idle;
181 183
182 /* BO mappings freed, but not yet updated in the PT */ 184 /* BO mappings freed, but not yet updated in the PT */
183 struct list_head freed; 185 struct list_head freed;
@@ -186,9 +188,6 @@ struct amdgpu_vm {
186 struct amdgpu_vm_pt root; 188 struct amdgpu_vm_pt root;
187 struct dma_fence *last_update; 189 struct dma_fence *last_update;
188 190
189 /* protecting freed */
190 spinlock_t freed_lock;
191
192 /* Scheduler entity for page table updates */ 191 /* Scheduler entity for page table updates */
193 struct drm_sched_entity entity; 192 struct drm_sched_entity entity;
194 193