diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2014-04-25 15:42:18 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-04-25 17:48:41 +0200 |
commit | 863c0730f3aa695f2e968e1f38e0f36c4f8af310 (patch) | |
tree | 2ee67cbee7171497e458e2da490f42367b117b1c /benchmarks/gem_userptr_benchmark.c | |
parent | a461515b334ebb7782ee15e31f943e7a6753d845 (diff) |
tests/gem_userptr_blits: Expanded userptr test cases
A set of userptr test cases to support the new feature.
For the eviction and swapping stress testing I have extracted
some common behaviour from gem_evict_everything and made both
test cases use it to avoid duplicating the code.
Both unsynchronized and synchronized userptr objects are
tested but the latter set of tests will be skipped if kernel
is compiled without MMU_NOTIFIERS.
Also, with 32-bit userspace swapping tests are skipped if
the system has a lot more RAM than process address space.
Forking swapping tests are not skipped since they can still
trigger swapping by cumulative effect.
v2:
* Fixed dmabuf test.
* Added test for rejecting read-only.
* Fixed ioctl detection for latest kernel patch.
v3:
* Use ALIGN macro.
* Catchup with big lib/ reorganization.
* Fixed up some warnings.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Brad Volkin <bradley.d.volkin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'benchmarks/gem_userptr_benchmark.c')
0 files changed, 0 insertions, 0 deletions