Re: [PATCH 5/7] prime_mmap: Test for userptr mmap

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

 



On Wed, Aug 12, 2015 at 08:29:18PM -0300, Tiago Vignatti wrote:
> A userptr doesn't have the obj->base.filp, but can be exported via dma-buf, so
> make sure it fails when mmaping.
> 
> Signed-off-by: Tiago Vignatti <tiago.vignatti@xxxxxxxxx>
> ---
> In machine, export the handle to fd is actually returning error and falling
> before the actual test happens. Same issue happens in gem_userptr_blits's
> test_dmabuf(). This patch needs to be tested properly therefore.

Yes, you are not allowed to export unsynchronized userptr. Just create a
normal one.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux