diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 15 | 
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;  /* PDE Block Fragment Size for VEGA10 */  #define AMDGPU_PDE_BFS(a)	((uint64_t)a << 59) -/* VEGA10 only */ + +/* For GFX9 */  #define AMDGPU_PTE_MTYPE(a)    ((uint64_t)a << 57)  #define AMDGPU_PTE_MTYPE_MASK	AMDGPU_PTE_MTYPE(3ULL) -/* For Raven */ +#define AMDGPU_MTYPE_NC 0  #define AMDGPU_MTYPE_CC 2  #define AMDGPU_PTE_DEFAULT_ATC  (AMDGPU_PTE_SYSTEM      \ @@ -167,9 +168,6 @@ struct amdgpu_vm {  	/* tree of virtual addresses mapped */  	struct rb_root_cached	va; -	/* protecting invalidated */ -	spinlock_t		status_lock; -  	/* BOs who needs a validation */  	struct list_head	evicted; @@ -178,6 +176,10 @@ struct amdgpu_vm {  	/* BOs moved, but not yet updated in the PT */  	struct list_head	moved; +	spinlock_t		moved_lock; + +	/* All BOs of this VM not currently in the state machine */ +	struct list_head	idle;  	/* BO mappings freed, but not yet updated in the PT */  	struct list_head	freed; @@ -186,9 +188,6 @@ struct amdgpu_vm {  	struct amdgpu_vm_pt     root;  	struct dma_fence	*last_update; -	/* protecting freed */ -	spinlock_t		freed_lock; -  	/* Scheduler entity for page table updates */  	struct drm_sched_entity	entity;  | 
