[PATCH 5/7] prime_mmap: Test for userptr mmap
chris at chris-wilson.co.uk
Sun Aug 23 05:17:10 PDT 2015
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 at intel.com>
> 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
Chris Wilson, Intel Open Source Technology Centre
More information about the dri-devel