diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 5ddb6cf96030..79120ec41396 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h @@ -89,7 +89,6 @@ struct amdgpu_bo {  	struct ttm_buffer_object	tbo;  	struct ttm_bo_kmap_obj		kmap;  	u64				flags; -	unsigned			pin_count;  	u64				tiling_flags;  	u64				metadata_flags;  	void				*metadata; @@ -101,7 +100,6 @@ struct amdgpu_bo {  	struct amdgpu_bo		*parent;  	struct amdgpu_bo		*shadow; -	struct ttm_bo_kmap_obj		dma_buf_vmap;  	struct amdgpu_mn		*mn; @@ -267,10 +265,9 @@ void amdgpu_bo_unref(struct amdgpu_bo **bo);  int amdgpu_bo_pin(struct amdgpu_bo *bo, u32 domain);  int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain,  			     u64 min_offset, u64 max_offset); -int amdgpu_bo_unpin(struct amdgpu_bo *bo); +void amdgpu_bo_unpin(struct amdgpu_bo *bo);  int amdgpu_bo_evict_vram(struct amdgpu_device *adev);  int amdgpu_bo_init(struct amdgpu_device *adev); -int amdgpu_bo_late_init(struct amdgpu_device *adev);  void amdgpu_bo_fini(struct amdgpu_device *adev);  int amdgpu_bo_fbdev_mmap(struct amdgpu_bo *bo,  				struct vm_area_struct *vma); @@ -285,7 +282,7 @@ void amdgpu_bo_move_notify(struct ttm_buffer_object *bo,  			   bool evict,  			   struct ttm_resource *new_mem);  void amdgpu_bo_release_notify(struct ttm_buffer_object *bo); -int amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo); +vm_fault_t amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo);  void amdgpu_bo_fence(struct amdgpu_bo *bo, struct dma_fence *fence,  		     bool shared);  int amdgpu_bo_sync_wait_resv(struct amdgpu_device *adev, struct dma_resv *resv, @@ -330,6 +327,7 @@ void amdgpu_sa_bo_free(struct amdgpu_device *adev,  #if defined(CONFIG_DEBUG_FS)  void amdgpu_sa_bo_dump_debug_info(struct amdgpu_sa_manager *sa_manager,  					 struct seq_file *m); +u64 amdgpu_bo_print_info(int id, struct amdgpu_bo *bo, struct seq_file *m);  #endif  int amdgpu_debugfs_sa_init(struct amdgpu_device *adev); | 
