Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v4

2019-02-16 Thread Christian König via dri-devel
Am 15.02.19 um 17:49 schrieb Jason Ekstrand: On Fri, Feb 15, 2019 at 9:52 AM Lionel Landwerlin via dri-devel > wrote: On 15/02/2019 14:32, Koenig, Christian wrote: > Am 15.02.19 um 15:23 schrieb Lionel Landwerlin: >> Hi Christian, David, >

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v4

2019-02-15 Thread Jason Ekstrand
On Fri, Feb 15, 2019 at 11:51 AM Christian König < ckoenig.leichtzumer...@gmail.com> wrote: > Am 15.02.19 um 17:49 schrieb Jason Ekstrand: > > On Fri, Feb 15, 2019 at 9:52 AM Lionel Landwerlin via dri-devel < > dri-devel@lists.freedesktop.org> wrote: > >> On 15/02/2019 14:32, Koenig, Christian wro

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v4

2019-02-15 Thread Jason Ekstrand
On Fri, Feb 15, 2019 at 12:33 PM Koenig, Christian wrote: > Am 15.02.19 um 19:16 schrieb Jason Ekstrand: > > On Fri, Feb 15, 2019 at 11:51 AM Christian König < > ckoenig.leichtzumer...@gmail.com> wrote: > >> Am 15.02.19 um 17:49 schrieb Jason Ekstrand: >> >> On Fri, Feb 15, 2019 at 9:52 AM Lionel

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v4

2019-02-15 Thread Koenig, Christian
Am 15.02.19 um 19:16 schrieb Jason Ekstrand: On Fri, Feb 15, 2019 at 11:51 AM Christian König mailto:ckoenig.leichtzumer...@gmail.com>> wrote: Am 15.02.19 um 17:49 schrieb Jason Ekstrand: On Fri, Feb 15, 2019 at 9:52 AM Lionel Landwerlin via dri-devel mailto:dri-devel@lists.freedesktop.org>> wro

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v4

2019-02-15 Thread Jason Ekstrand
On Fri, Feb 15, 2019 at 9:52 AM Lionel Landwerlin via dri-devel < dri-devel@lists.freedesktop.org> wrote: > On 15/02/2019 14:32, Koenig, Christian wrote: > > Am 15.02.19 um 15:23 schrieb Lionel Landwerlin: > >> Hi Christian, David, > >> > >> For timeline semaphore we need points to signaled in ord

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v4

2019-02-15 Thread Christian König via dri-devel
Am 15.02.19 um 16:52 schrieb Lionel Landwerlin: On 15/02/2019 14:32, Koenig, Christian wrote: Am 15.02.19 um 15:23 schrieb Lionel Landwerlin: Hi Christian, David, For timeline semaphore we need points to signaled in order. I'm struggling to understand how this fence-chain implementation preser

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v4

2019-02-15 Thread Lionel Landwerlin via dri-devel
On 15/02/2019 14:32, Koenig, Christian wrote: Am 15.02.19 um 15:23 schrieb Lionel Landwerlin: Hi Christian, David, For timeline semaphore we need points to signaled in order. I'm struggling to understand how this fence-chain implementation preserves ordering of the seqnos. One of the scenario

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v4

2019-02-15 Thread Lionel Landwerlin via dri-devel
Hi Christian, David, For timeline semaphore we need points to signaled in order. I'm struggling to understand how this fence-chain implementation preserves ordering of the seqnos. One of the scenario I can see an issue happening is when you have a timeline with points 1 & 2 and userspace subm

Re: [PATCH 02/11] dma-buf: add new dma_fence_chain container v4

2019-02-15 Thread Koenig, Christian
Am 15.02.19 um 15:23 schrieb Lionel Landwerlin: > Hi Christian, David, > > For timeline semaphore we need points to signaled in order. > I'm struggling to understand how this fence-chain implementation > preserves ordering of the seqnos. > > One of the scenario I can see an issue happening is when

[PATCH 02/11] dma-buf: add new dma_fence_chain container v4

2018-12-07 Thread Chunming Zhou
From: Christian König Lockless container implementation similar to a dma_fence_array, but with only two elements per node and automatic garbage collection. v2: properly document dma_fence_chain_for_each, add dma_fence_chain_find_seqno, drop prev reference during garbage collection if it's no