diff options
author | Christian König <[email protected]> | 2024-11-08 09:29:48 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2024-11-25 20:08:27 +0100 |
commit | 78ac1c3558810486d90aa533b0039aa70487a3da (patch) | |
tree | b34c7604237020510b649a8ccfa243cd41c7319c /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | fe52c649438b8489c9456681d93a9b3de3d38263 (diff) |
dma-buf: fix dma_fence_array_signaled v4
The function silently assumed that signaling was already enabled for the
dma_fence_array. This meant that without enabling signaling first we would
never see forward progress.
Fix that by falling back to testing each individual fence when signaling
isn't enabled yet.
v2: add the comment suggested by Boris why this is done this way
v3: fix the underflow pointed out by Tvrtko
v4: atomic_read_acquire() as suggested by Tvrtko
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Tested-by: Chia-I Wu <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12094
Cc: <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions