diff options
author | 2022-08-02 16:01:58 -0500 | |
---|---|---|
committer | 2022-11-18 20:07:58 +0100 | |
commit | c19083c72ea72a1c12037bb3d708014632df80e4 (patch) | |
tree | b285cb8a9867070080c5ca4f66a92b2a8ed7f95e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amdgpu: handle gang submit before VMID (diff) | |
download | wireguard-linux-c19083c72ea72a1c12037bb3d708014632df80e4.tar.xz wireguard-linux-c19083c72ea72a1c12037bb3d708014632df80e4.zip |
dma-buf: Use dma_fence_unwrap_for_each when importing fences
Ever since 68129f431faa ("dma-buf: warn about containers in dma_resv object"),
dma_resv_add_shared_fence will warn if you attempt to add a container fence.
While most drivers were fine, fences can also be added to a dma_resv via the
recently added DMA_BUF_IOCTL_IMPORT_SYNC_FILE. Use dma_fence_unwrap_for_each
to add each fence one at a time.
Fixes: 594740497e99 ("dma-buf: Add an API for importing sync files (v10)")
Signed-off-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reported-by: Sarah Walker <Sarah.Walker@imgtec.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
CC: stable@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20220802210158.4162525-1-jason.ekstrand@collabora.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions