[PATCH v2 13/15] drm/ttm: Add BO and offset arguments for vm_access and vm_fault ttm handlers.
Christian König
christian.koenig at amd.com
Tue May 18 17:06:16 UTC 2021
Am 18.05.21 um 18:49 schrieb Maarten Lankhorst:
> Op 18-05-2021 om 17:07 schreef Christian König:
>> Am 18.05.21 um 16:55 schrieb Thomas Hellström:
>>> From: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
>>>
>>> This allows other drivers that may not setup the vma in the same way
>>> to use the ttm bo helpers.
>> Uff can you please explain why exactly you need that?
>>
>> Providing the BO is not much of a problem, but having the BO at different VMA offsets is really a no-go with TTM.
> i915 has its own mmap allocation handling to handle caching modes, and wouldn't use TTM's vma handling. But we do want to use the ttm fault handlers, which only need mmap_base + bo to work correctly.
Yeah, but that is really a no-go. The VMA handling is a very essential
part of TTM.
If you want to use TTM we have to find a cleaner way to implement this.
Christian.
>
> ~Maarten
>
More information about the dri-devel
mailing list