]> 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)
commitf78dfa422f368c953b18d8845d2a0f662ddc58d9
tree43a2522b6498236d8c30d202873199c0ab87ef5c
parent867c68b92950f06d6ee910c20dc70adff7f6d31d
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: fd855cab5feebd ("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