]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Use dma_fence_check_and_signal_locked()
authorPhilipp Stanner <phasta@kernel.org>
Mon, 1 Dec 2025 10:50:08 +0000 (11:50 +0100)
committerPhilipp Stanner <phasta@kernel.org>
Thu, 4 Dec 2025 14:03:40 +0000 (15:03 +0100)
commitdbcd754b845987f7157260c15e80ae19da81c9df
tree5c9c03d2e9330111d20f88d757bbd199ec8317cd
parent06bc18e0def7d926265480faa555bf0b67a35a90
drm/xe: Use dma_fence_check_and_signal_locked()

Xe is one of the few users utilizing the return code of
dma_fence_signal() to check whether a fence had already been signaled by
someone else.

To clean up and simplify the dma_fence API, the few kernel users relying
on that behavior shall be ported to an alternative function.

Replace dma_fence_signal_locked() with
dma_fence_check_and_signal_locked().

Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://patch.msgid.link/20251201105011.19386-6-phasta@kernel.org
drivers/gpu/drm/xe/xe_hw_fence.c