Re: [PATCH 1/2] dma-buf/fence: add fence_collection fences

2016-05-19 Thread Gustavo Padovan
Hi Christian, 2016-05-19 Christian König : > Am 19.05.2016 um 00:57 schrieb Chris Wilson: > > On Wed, May 18, 2016 at 05:59:52PM -0300, Gustavo Padovan wrote: > > > +static void collection_check_cb_func(struct fence *fence, struct > > > fence_cb *cb) > > > +{ > > > + struct fence_collection_cb *

Re: [PATCH 1/2] dma-buf/fence: add fence_collection fences

2016-05-19 Thread Daniel Vetter
On Thu, May 19, 2016 at 09:46:47AM +0200, Christian König wrote: > Am 19.05.2016 um 00:57 schrieb Chris Wilson: > >On Wed, May 18, 2016 at 05:59:52PM -0300, Gustavo Padovan wrote: > >>+static void collection_check_cb_func(struct fence *fence, struct fence_cb > >>*cb) > >>+{ > >>+ struct fence_co

Re: [PATCH 1/2] dma-buf/fence: add fence_collection fences

2016-05-19 Thread Christian König
Am 19.05.2016 um 00:57 schrieb Chris Wilson: On Wed, May 18, 2016 at 05:59:52PM -0300, Gustavo Padovan wrote: +static void collection_check_cb_func(struct fence *fence, struct fence_cb *cb) +{ + struct fence_collection_cb *f_cb; + struct fence_collection *collection; + + f_cb =

Re: [PATCH 1/2] dma-buf/fence: add fence_collection fences

2016-05-18 Thread Chris Wilson
On Wed, May 18, 2016 at 05:59:52PM -0300, Gustavo Padovan wrote: > +static void collection_check_cb_func(struct fence *fence, struct fence_cb > *cb) > +{ > + struct fence_collection_cb *f_cb; > + struct fence_collection *collection; > + > + f_cb = container_of(cb, struct fence_collecti

[PATCH 1/2] dma-buf/fence: add fence_collection fences

2016-05-18 Thread Gustavo Padovan
From: Gustavo Padovan struct fence_collection inherits from struct fence and carries a collection of fences that needs to be waited together. It is useful to translate a sync_file to a fence to remove the complexity of dealing with sync_files on DRM drivers. So even if there are many fences in t