[Intel-gfx] [PATCH v2] prime_mmap_coherency: Add return error tests for prime sync ioctl

2016-03-18 Thread Chris Wilson
On Fri, Mar 18, 2016 at 09:44:40AM +, Chris Wilson wrote: > On Thu, Mar 17, 2016 at 06:18:06PM -0300, Tiago Vignatti wrote: > > +static void test_ioctl_errors(void) > > +{ > > + int i; > > + int num_children = 8*sysconf(_SC_NPROCESSORS_ONLN); > > + > > + igt_fork_signal_helper(); > > +

[PATCH v2] prime_mmap_coherency: Add return error tests for prime sync ioctl

2016-03-18 Thread Chris Wilson
On Thu, Mar 17, 2016 at 06:18:06PM -0300, Tiago Vignatti wrote: > +static void test_ioctl_errors(void) > +{ > + int i; > + int num_children = 8*sysconf(_SC_NPROCESSORS_ONLN); > + > + igt_fork_signal_helper(); > + igt_fork(child, num_children) { Actually there is a danger here in

[PATCH v2] prime_mmap_coherency: Add return error tests for prime sync ioctl

2016-03-17 Thread Tiago Vignatti
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