diff options
author | Rob Bradford <rob@linux.intel.com> | 2015-07-29 17:23:58 -0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-02-11 18:15:52 +0100 |
commit | e0efeb97a970fbbd5adaeef472bf9f78777c6cb4 (patch) | |
tree | 750016d68a4c5727cf8c3319dd8a9862cf3dc97f /tests/Makefile.sources | |
parent | e1f663b543e89a58746b0d0bebb7bab30d325e1c (diff) |
prime_mmap: Add new test for calling mmap() on dma-buf fds
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 checks for buffer reference counting
- test_dup checks that dup()ing the fd works
- test_userptr make sure it fails when mmaping due the lack of obj->base.filp
in a userptr.
- test_errors checks the error return values for failures
- test_aperture_limit tests multiple buffer creation at the gtt aperture
limit
v2 (Tiago): Removed pattern_check(), which was walking through a useless
iterator. Removed superfluous PROT_WRITE from gem_mmap, in test_correct().
Added binary file to .gitignore
v3 (Tiago): squash patch "prime_mmap: Test for userptr mmap" into this one.
v4 (Tiago): use synchronized userptr for testing. Add test for buffer
overlapping.
Signed-off-by: Rob Bradford <rob@linux.intel.com>
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests/Makefile.sources')
-rw-r--r-- | tests/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Makefile.sources b/tests/Makefile.sources index df92586a..8df18fab 100644 --- a/tests/Makefile.sources +++ b/tests/Makefile.sources @@ -106,6 +106,7 @@ TESTS_progs_M = \ pm_rps \ pm_rc6_residency \ pm_sseu \ + prime_mmap \ prime_self_import \ template \ $(NULL) |