[PATCH 2/2] drm/amdgpu: Implement ttm_bo_driver.access_vram callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14/07/17 06:23 AM, Felix Kuehling wrote:
> On 17-07-13 05:08 PM, Felix Kuehling wrote:
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
>> @@ -78,6 +78,8 @@ int amdgpu_fill_buffer(struct amdgpu_bo *bo,
>>  			struct dma_fence **fence);
>>  
>>  int amdgpu_mmap(struct file *filp, struct vm_area_struct *vma);
>> +int amdgpu_bo_mmap(struct file *filp, struct vm_area_struct *vma,
>> +		   struct ttm_bo_device *bdev);
>>  bool amdgpu_ttm_is_bound(struct ttm_tt *ttm);
>>  int amdgpu_ttm_bind(struct ttm_buffer_object *bo, struct ttm_mem_reg *bo_mem);
>>  int amdgpu_ttm_recover_gart(struct amdgpu_device *adev);
> Oops, this is a remnant from the old version that hacked the ttm_vm_ops
> in amdgpu. I'll remove this before I submit.

With that fixed (and possibly excluding driver-private memory types if
necessary, per discussion of patch 1),

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux