OSDN Git Service

dma-buf: fix dma-fence-chain out of order test
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 25 Jun 2020 12:34:43 +0000 (15:34 +0300)
committerChristian König <christian.koenig@amd.com>
Thu, 2 Jul 2020 13:21:40 +0000 (15:21 +0200)
commit4cca2e641641767593583749dec26bfebd8f6f2d
tree43a2522b6498236d8c30d202873199c0ab87ef5c
parent91fac86d8636684fc32ec3ba20e8532484df2308
dma-buf: fix dma-fence-chain out of order test

There was probably a misunderstand on how the dma-fence-chain is
supposed to work or what dma_fence_chain_find_seqno() is supposed to
return.

dma_fence_chain_find_seqno() is here to give us the fence to wait upon
for a particular point in the timeline. The timeline progresses only
when all the points prior to a given number have completed.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: dc2f7e67a28a5c ("dma-buf: Exercise dma-fence-chain under selftests")
Link: https://patchwork.freedesktop.org/patch/372960/
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/dma-buf/st-dma-fence-chain.c