[RFC] dma-buf/fence-array: signal from wq

2016-10-26 Thread Rob Clark
On Sun, Oct 16, 2016 at 2:54 PM, Chris Wilson wrote: > On Sun, Oct 16, 2016 at 02:29:51PM -0400, Rob Clark wrote: >> On Sun, Oct 16, 2016 at 1:49 PM, Chris Wilson >> wrote: >> > On Sun, Oct 16, 2016 at 12:39:35PM -0400, Rob Clark wrote: >> >> This is the alternative approach for solving a deadl

[RFC] dma-buf/fence-array: signal from wq

2016-10-16 Thread Chris Wilson
On Sun, Oct 16, 2016 at 02:29:51PM -0400, Rob Clark wrote: > On Sun, Oct 16, 2016 at 1:49 PM, Chris Wilson > wrote: > > On Sun, Oct 16, 2016 at 12:39:35PM -0400, Rob Clark wrote: > >> This is the alternative approach for solving a deadlock situation with > >> array-fences. > >> > >> Currently wit

[RFC] dma-buf/fence-array: signal from wq

2016-10-16 Thread Chris Wilson
On Sun, Oct 16, 2016 at 12:39:35PM -0400, Rob Clark wrote: > This is the alternative approach for solving a deadlock situation with > array-fences. > > Currently with fence-array, we have a potential deadlock situation. If we > fence_add_callback() on an array-fence, the array-fence's lock is aqu

[RFC] dma-buf/fence-array: signal from wq

2016-10-16 Thread Rob Clark
On Sun, Oct 16, 2016 at 1:49 PM, Chris Wilson wrote: > On Sun, Oct 16, 2016 at 12:39:35PM -0400, Rob Clark wrote: >> This is the alternative approach for solving a deadlock situation with >> array-fences. >> >> Currently with fence-array, we have a potential deadlock situation. If we >> fence_ad

[RFC] dma-buf/fence-array: signal from wq

2016-10-16 Thread Rob Clark
This is the alternative approach for solving a deadlock situation with array-fences. Currently with fence-array, we have a potential deadlock situation. If we fence_add_callback() on an array-fence, the array-fence's lock is aquired first, and in it's ->enable_signaling() callback, it will instal