summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorPhilipp Stanner <phasta@kernel.org>2025-12-01 11:50:10 +0100
committerPhilipp Stanner <phasta@kernel.org>2025-12-04 15:03:40 +0100
commitc6c60a2290b335eb5b45c6c7eeb254f18027b3ec (patch)
tree14326d5b247bc62075c743ac9ffc7f0526fee69b /drivers/gpu
parent583d1fa19148c261868fa5c2382fe552c06a2164 (diff)
downloadlinux-c6c60a2290b335eb5b45c6c7eeb254f18027b3ec.tar.gz
linux-c6c60a2290b335eb5b45c6c7eeb254f18027b3ec.zip
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
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c b/drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
index 2eda87882e65..6d95447a989d 100644
--- a/drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
+++ b/drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c
@@ -692,7 +692,7 @@ static int threaded_fence_signal(void *arg)
msleep(20);
- return dma_fence_signal(fence);
+ return dma_fence_check_and_signal(fence) ? -EINVAL : 0;
}
static void ttm_bo_validate_move_fence_not_signaled(struct kunit *test)