OSDN Git Service

libdrm: amdgpu: Adding DRM_RDWR flag in amdgpu_bo_export
authorSatyajit <satyajit.sahu@amd.com>
Mon, 26 Feb 2018 12:37:03 +0000 (18:07 +0530)
committerChristian König <christian.koenig@amd.com>
Thu, 22 Mar 2018 08:59:07 +0000 (09:59 +0100)
commitb81d44d587d1706d5c7568e539340632a748782b
tree18ac9131098c8e44daecf2db35880fbdd3094430
parent361d4bffd322f2743f8b5ce4a81ed0482105afac
libdrm: amdgpu: Adding DRM_RDWR flag in amdgpu_bo_export

Currently while exporting prime handle to fd read write access is
not granted. mmap fails because of this. mmap was not supported on
prime initially.
Here is link to related discussion
https://lists.freedesktop.org/archives/dri-devel/2017-February/131840.html

Adding the DRM_RDWR flag in amdgpu_bo_export to support mmap.

Signed-off-by: Satyajit <satyajit.sahu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
amdgpu/amdgpu_bo.c