[RFC PATCH] drm: rework flip-work helpers to avoid calling func when the FIFO is full

2014-07-11 Thread Boris BREZILLON
On Fri, 11 Jul 2014 17:47:05 +0200 Boris BREZILLON wrote: > On Fri, 11 Jul 2014 11:41:12 -0400 > Rob Clark wrote: > > > On Fri, Jul 11, 2014 at 11:17 AM, Boris BREZILLON > > wrote: > > > Make use of lists instead of kfifo in order to dynamically allocate > > > task entry when someone require s

[RFC PATCH] drm: rework flip-work helpers to avoid calling func when the FIFO is full

2014-07-11 Thread Boris BREZILLON
On Fri, 11 Jul 2014 11:41:12 -0400 Rob Clark wrote: > On Fri, Jul 11, 2014 at 11:17 AM, Boris BREZILLON > wrote: > > Make use of lists instead of kfifo in order to dynamically allocate > > task entry when someone require some delayed work, and thus preventing > > drm_flip_work_queue from directl

[RFC PATCH] drm: rework flip-work helpers to avoid calling func when the FIFO is full

2014-07-11 Thread Boris BREZILLON
Make use of lists instead of kfifo in order to dynamically allocate task entry when someone require some delayed work, and thus preventing drm_flip_work_queue from directly calling func instead of queuing this call. This allow drm_flip_work_queue to be safely called even within irq handlers. Add n

[RFC PATCH] drm: rework flip-work helpers to avoid calling func when the FIFO is full

2014-07-11 Thread Rob Clark
On Fri, Jul 11, 2014 at 11:47 AM, Boris BREZILLON wrote: > On Fri, 11 Jul 2014 11:41:12 -0400 > Rob Clark wrote: > >> On Fri, Jul 11, 2014 at 11:17 AM, Boris BREZILLON >> wrote: >> > Make use of lists instead of kfifo in order to dynamically allocate >> > task entry when someone require some del

[RFC PATCH] drm: rework flip-work helpers to avoid calling func when the FIFO is full

2014-07-11 Thread Rob Clark
On Fri, Jul 11, 2014 at 11:17 AM, Boris BREZILLON wrote: > Make use of lists instead of kfifo in order to dynamically allocate > task entry when someone require some delayed work, and thus preventing > drm_flip_work_queue from directly calling func instead of queuing this > call. > This allow drm_