Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/ttm: Use dma_fence_check_and_signal()

The return code of dma_fence_signal() is not useful and shall be removed
from the kernel. To do so, the few users who rely on the return code
must be ported.

Use dma_fence_check_and_signal() and mapp its boolean return code to
dma_fence_signal()'s former value for already-signaled fences.

Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://patch.msgid.link/20251201105011.19386-8-phasta@kernel.org

+1 -1
+1 -1
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
··· 692 692 693 693 msleep(20); 694 694 695 - return dma_fence_signal(fence); 695 + return dma_fence_check_and_signal(fence) ? -EINVAL : 0; 696 696 } 697 697 698 698 static void ttm_bo_validate_move_fence_not_signaled(struct kunit *test)