]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c1f77fdb3c2bc588937f58772ab9a78dc79f7af
tree43a2522b6498236d8c30d202873199c0ab87ef5c
parent867b8c28288033fdb5371b690a33c6680931e29b
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: 32bc62383e5bd9 ("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