]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/nouveau: Check dma_fence in canonical way
authorPhilipp Stanner <phasta@kernel.org>
Thu, 24 Apr 2025 13:02:54 +0000 (15:02 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 16 May 2025 13:15:26 +0000 (15:15 +0200)
commite0677e52545349b76a946c75fea89aa698aeb97a
tree898efe07c627498964373a58523f9dc161d1fe9b
parent2628009dba602d9959c9318c7732851780073523
drm/nouveau: Check dma_fence in canonical way

In nouveau_fence_done(), a fence is checked for being signaled by
manually evaluating the base fence's bits. This can be done in a
canonical manner through dma_fence_is_signaled().

Replace the bit-check with dma_fence_is_signaled().

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://lore.kernel.org/r/20250424130254.42046-6-phasta@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/drm/nouveau/nouveau_fence.c