dma-fence: Use a flag for 64-bit seqnos
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Thu, 15 May 2025 09:49:57 +0000 (10:49 +0100)
committerTvrtko Ursulin <tursulin@ursulin.net>
Tue, 3 Jun 2025 16:38:04 +0000 (17:38 +0100)
commitbf33a0003d9e3b0546f2d7e91bebfd67af59f275
treef7e1cfcbbd9dacc1a003f7d6c032b1367ab488e0
parent22b929b25293208d9d34ff6fa783c6788e0b791c
dma-fence: Use a flag for 64-bit seqnos

With the goal of reducing the need for drivers to touch (and dereference)
fence->ops, we move the 64-bit seqnos flag from struct dma_fence_ops to
the fence->flags.

Drivers which were setting this flag are changed to use new
dma_fence_init64() instead of dma_fence_init().

v2:
 * Streamlined init and added kerneldoc.
 * Rebase for amdgpu userq which landed since.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Christian König <christian.koenig@amd.com> # v1
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
Link: https://lore.kernel.org/r/20250515095004.28318-3-tvrtko.ursulin@igalia.com
drivers/dma-buf/dma-fence-chain.c
drivers/dma-buf/dma-fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c
include/linux/dma-fence.h