Hi Alex, Thanks for this patch. Adding Gustavo as well. On 3 November 2016 at 11:41, Alex Deucher <alexdeucher at gmail.com> wrote: > From: "monk.liu" <monk.liu at amd.com> > > Return the index of the first signaled fence. This information > is useful in some APIs like Vulkan. > > Signed-off-by: monk.liu <monk.liu at amd.com> > Signed-off-by: Alex Deucher <alexander.deucher at amd.com> > Cc: Sumit Semwal <sumit.semwal at linaro.org> > --- > drivers/dma-buf/fence.c | 19 ++++++++++++++----- > include/linux/fence.h | 2 +- > 2 files changed, 15 insertions(+), 6 deletions(-) > > diff --git a/drivers/dma-buf/fence.c b/drivers/dma-buf/fence.c > index 64478f9..32fdce1 100644 > --- a/drivers/dma-buf/fence.c > +++ b/drivers/dma-buf/fence.c > @@ -397,14 +397,17 @@ out: > EXPORT_SYMBOL(fence_default_wait); > > static bool > -fence_test_signaled_any(struct fence **fences, uint32_t count) > +fence_test_signaled_any(struct fence **fences, uint32_t count, uint32_t *idx) > { Looks sane to me; Gustavo, comments? Best regards, Sumit.