]> git.hungrycats.org Git - linux/commit
drm/amdgpu: don't reemit if there is nothing to reemit
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 15 May 2026 13:56:07 +0000 (09:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jun 2026 19:51:33 +0000 (15:51 -0400)
commit930a915de89ce6b3ae4d1b902304df3b0fb507cc
tree2d3f1f25444cd9fbf243457bd4dd6b8f6711311d
parent52d4ab1ca790a668cc8f2c27017138b1c467168c
drm/amdgpu: don't reemit if there is nothing to reemit

Return early in amdgpu_ring_set_fence_errors_and_reemit()
if ring_backup_entries_to_copy is 0.  That means that either
the ring is idle and there is nothing to reemit, or there
some reason why we should reemit, so return early and
signal the fences (if applicable).

Reviewed-by: Jesse Zhang <jesse.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c