[PATCH 1/7] prime_mmap: Add new test for calling mmap() on dma-buf fds

2015-08-25 Thread Daniel Vetter
On Fri, Aug 14, 2015 at 07:17:05PM -0300, Tiago Vignatti wrote: > Hi Daniel, > > On 08/13/2015 04:04 AM, Daniel Vetter wrote: > >On Wed, Aug 12, 2015 at 08:29:14PM -0300, Tiago Vignatti wrote: > >>+ /* Map too big */ > >>+ handle = gem_create(fd, BO_SIZE); > >>+ fill_bo(handle, BO_SIZE); >

[PATCH 1/7] prime_mmap: Add new test for calling mmap() on dma-buf fds

2015-08-14 Thread Tiago Vignatti
Hi Daniel, On 08/13/2015 04:04 AM, Daniel Vetter wrote: > On Wed, Aug 12, 2015 at 08:29:14PM -0300, Tiago Vignatti wrote: >> +/* Map too big */ >> +handle = gem_create(fd, BO_SIZE); >> +fill_bo(handle, BO_SIZE); >> +dma_buf_fd = prime_handle_to_fd(fd, handle); >> +

[PATCH 1/7] prime_mmap: Add new test for calling mmap() on dma-buf fds

2015-08-13 Thread Daniel Vetter
On Wed, Aug 12, 2015 at 08:29:14PM -0300, Tiago Vignatti wrote: > From: Rob Bradford > > This test has the following subtests: > - test_correct for correctness of the data > - test_map_unmap checks for mapping idempotency > - test_reprime checks for dma-buf creation idempotency > -

[PATCH 1/7] prime_mmap: Add new test for calling mmap() on dma-buf fds

2015-08-12 Thread Tiago Vignatti
From: Rob Bradford This test has the following subtests: - test_correct for correctness of the data - test_map_unmap checks for mapping idempotency - test_reprime checks for dma-buf creation idempotency - test_forked checks for multiprocess access - test_refcounting