]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/radeon: delete radeon_fence_process in is_signaled, no deadlock
authorRobert McClinton <rbmccav@gmail.com>
Sun, 16 Nov 2025 17:33:21 +0000 (12:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Nov 2025 17:09:47 +0000 (12:09 -0500)
commit9eb00b5f5697bd56baa3222c7a1426fa15bacfb5
tree62dec04c576daccd622955d73b03b1db1b09c258
parent1788ef30725da53face7e311cdf62ad65fababcd
drm/radeon: delete radeon_fence_process in is_signaled, no deadlock

Delete the attempt to progress the queue when checking if fence is
signaled. This avoids deadlock.

dma-fence_ops::signaled can be called with the fence lock in unknown
state. For radeon, the fence lock is also the wait queue lock. This can
cause a self deadlock when signaled() tries to make forward progress on
the wait queue. But advancing the queue is unneeded because incorrectly
returning false from signaled() is perfectly acceptable.

Link: https://github.com/brave/brave-browser/issues/49182
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4641
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Robert McClinton <rbmccav@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 527ba26e50ec2ca2be9c7c82f3ad42998a75d0db)
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_fence.c