[PATCH 1/2] drm/amdgpu: return bo itself if userptr is cpu addr of bo (v3)
Marek Olšák
maraeo at gmail.com
Wed Aug 1 17:39:54 UTC 2018
On Wed, Aug 1, 2018 at 2:32 AM, Christian König
<christian.koenig at amd.com> wrote:
> Am 01.08.2018 um 00:07 schrieb Marek Olšák:
>>
>> Can this be implemented as a wrapper on top of libdrm? So that the
>> tree (or hash table) isn't created for UMDs that don't need it.
>
>
> No, the problem is that an application gets a CPU pointer from one API and
> tries to import that pointer into another one.
>
> In other words we need to implement this independent of the UMD who mapped
> the BO.
Yeah, it could be an optional feature of libdrm, and other components
should be able to disable it to remove the overhead.
Marek
More information about the amd-gfx
mailing list