diff options
| author | Dmitry Torokhov <[email protected]> | 2022-12-12 10:47:03 -0800 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2022-12-12 10:47:03 -0800 | 
| commit | e291c116f60f3c1ca98090f0f8e7c77e658562fb (patch) | |
| tree | 2fbe810f2a6f8b29f1cdaefd87b24debbfa0ec07 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
| parent | 8c9a59939deb4bfafdc451100c03d1e848b4169b (diff) | |
| parent | c3991107a28a5ad0bd90660ca3bbf8c2c220ea98 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.2 merge window.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index 9ecb7f663e19..83acb7bd80fe 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h @@ -254,6 +254,9 @@ struct amdgpu_vm {  	bool			evicting;  	unsigned int		saved_flags; +	/* Lock to protect vm_bo add/del/move on all lists of vm */ +	spinlock_t		status_lock; +  	/* BOs who needs a validation */  	struct list_head	evicted; @@ -268,7 +271,6 @@ struct amdgpu_vm {  	/* regular invalidated BOs, but not yet updated in the PT */  	struct list_head	invalidated; -	spinlock_t		invalidated_lock;  	/* BO mappings freed, but not yet updated in the PT */  	struct list_head	freed; @@ -276,6 +278,10 @@ struct amdgpu_vm {  	/* BOs which are invalidated, has been updated in the PTs */  	struct list_head        done; +	/* PT BOs scheduled to free and fill with zero if vm_resv is not hold */ +	struct list_head	pt_freed; +	struct work_struct	pt_free_work; +  	/* contains the page directory */  	struct amdgpu_vm_bo_base     root;  	struct dma_fence	*last_update; @@ -471,6 +477,7 @@ int amdgpu_vm_pde_update(struct amdgpu_vm_update_params *params,  int amdgpu_vm_ptes_update(struct amdgpu_vm_update_params *params,  			  uint64_t start, uint64_t end,  			  uint64_t dst, uint64_t flags); +void amdgpu_vm_pt_free_work(struct work_struct *work);  #if defined(CONFIG_DEBUG_FS)  void amdgpu_debugfs_vm_bo_info(struct amdgpu_vm *vm, struct seq_file *m); |