diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 12 | 
1 files changed, 4 insertions, 8 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h index d2987536d7cd..9e38475e0f8d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h @@ -60,14 +60,10 @@ struct amdgpu_gtt_mgr {  };  struct amdgpu_mman { -	struct ttm_bo_device		bdev; +	struct ttm_device		bdev;  	bool				initialized;  	void __iomem			*aper_base_kaddr; -#if defined(CONFIG_DEBUG_FS) -	struct dentry			*debugfs_entries[8]; -#endif -  	/* buffer handling */  	const struct amdgpu_buffer_funcs	*buffer_funcs;  	struct amdgpu_ring			*buffer_funcs_ring; @@ -116,11 +112,11 @@ int amdgpu_gtt_mgr_recover(struct ttm_resource_manager *man);  u64 amdgpu_vram_mgr_bo_visible_size(struct amdgpu_bo *bo);  int amdgpu_vram_mgr_alloc_sgt(struct amdgpu_device *adev,  			      struct ttm_resource *mem, +			      u64 offset, u64 size,  			      struct device *dev,  			      enum dma_data_direction dir,  			      struct sg_table **sgt); -void amdgpu_vram_mgr_free_sgt(struct amdgpu_device *adev, -			      struct device *dev, +void amdgpu_vram_mgr_free_sgt(struct device *dev,  			      enum dma_data_direction dir,  			      struct sg_table *sgt);  uint64_t amdgpu_vram_mgr_usage(struct ttm_resource_manager *man); @@ -186,6 +182,6 @@ uint64_t amdgpu_ttm_tt_pde_flags(struct ttm_tt *ttm, struct ttm_resource *mem);  uint64_t amdgpu_ttm_tt_pte_flags(struct amdgpu_device *adev, struct ttm_tt *ttm,  				 struct ttm_resource *mem); -int amdgpu_ttm_debugfs_init(struct amdgpu_device *adev); +void amdgpu_ttm_debugfs_init(struct amdgpu_device *adev);  #endif | 
