Tiago Vignatti f129ee8a39 prime_mmap_coherency: Add return error tests for prime sync ioctl
This patch adds ioctl-errors subtest to be used for exercising prime sync ioctl
errors.

The subtest constantly interrupts via signals a function doing concurrent blit
to stress out the right usage of prime_sync_*, making sure these ioctl errors
are handled accordingly. Important to note that in case of failure (e.g. in a
case where the ioctl wouldn't try again in a return error) this test does not
reliably catch the problem with 100% of accuracy.

v2: fix prime sync direction when reading mmap'ed file.
v3: change the upper bound using time rather than loops

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
[ickle: fix memleak, run for longer]
2016-03-18 20:42:49 +00:00
..
2014-12-10 17:11:35 +00:00
2014-12-10 17:11:35 +00:00
2016-02-18 10:30:56 +00:00
2015-11-03 19:46:11 +00:00
2016-03-01 16:57:00 +02:00
2016-01-08 19:56:49 +02:00
2016-02-18 10:30:56 +00:00
2015-11-03 19:46:11 +00:00
2015-11-03 19:46:11 +00:00
2016-02-18 10:30:56 +00:00
2015-11-03 19:46:11 +00:00
2015-11-03 19:46:11 +00:00
2015-11-03 19:46:11 +00:00
2015-11-03 19:46:11 +00:00
2015-11-03 19:46:11 +00:00
2015-11-03 19:46:11 +00:00
2016-03-07 14:18:43 +00:00
2015-08-21 09:37:10 +01:00
2012-01-15 16:05:43 +01:00