Message ID | 1555734295-31015-6-git-send-email-john.stultz@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | libdrm: Patches from AOSP | expand |
On Sat, 20 Apr 2019 at 05:25, John Stultz <john.stultz@linaro.org> wrote: > > From: Hemant Hariyani <hemanthariyani@ti.com> > > Allows mmap on dmabuf fd with MAP_SHARED and PROT_WRITE. > > This fixes boot failures caused due to mmap() returning error > Commit message is quite meh - xf86-video-omap does not use the API, so things should work (tm) ;-) Joking aside - Android and closed source user-space drivers are used, so please mention that. Although I'd stick with Rob's input - he is the principal author of this code. -Emil
Am 23.04.19 um 12:26 schrieb Emil Velikov: > On Sat, 20 Apr 2019 at 05:25, John Stultz <john.stultz@linaro.org> wrote: >> From: Hemant Hariyani <hemanthariyani@ti.com> >> >> Allows mmap on dmabuf fd with MAP_SHARED and PROT_WRITE. >> >> This fixes boot failures caused due to mmap() returning error >> > Commit message is quite meh - xf86-video-omap does not use the API, so > things should work (tm) ;-) > Joking aside - Android and closed source user-space drivers are used, > so please mention that. > > Although I'd stick with Rob's input - he is the principal author of this code. IIRC we had the same problem in amdgpu some time ago, so in general the patch looks correct to me. Christian. > > -Emil > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff --git a/omap/omap_drm.c b/omap/omap_drm.c index 3aed4e0..ffacea6 100644 --- a/omap/omap_drm.c +++ b/omap/omap_drm.c @@ -414,7 +414,7 @@ drm_public int omap_bo_dmabuf(struct omap_bo *bo) if (bo->fd < 0) { struct drm_prime_handle req = { .handle = bo->handle, - .flags = DRM_CLOEXEC, + .flags = DRM_CLOEXEC | DRM_RDWR, }; int ret;