]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Fix cond_exec handling in amdgpu_ib_schedule()
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Jan 2026 04:44:45 +0000 (23:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2026 15:57:44 +0000 (16:57 +0100)
commit078377b07f8e825e6798355d5a201a5c7367bcf9
tree0dfa11eb6929cee3c6d9b21bbb0374bbee565f99
parentac251d17d8af58ddc3daba65eaf0a99e63dc4284
drm/amdgpu: Fix cond_exec handling in amdgpu_ib_schedule()

commit b1defcdc4457649db236415ee618a7151e28788c upstream.

The EXEC_COUNT field must be > 0.  In the gfx shadow
handling we always emit a cond_exec packet after the gfx_shadow
packet, but the EXEC_COUNT never gets patched.  This leads
to a hang when we try and reset queues on gfx11 APUs.

Fixes: c68cbbfd54c6 ("drm/amdgpu: cleanup conditional execution")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4789
Reviewed-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit ba205ac3d6e83f56c4f824f23f1b4522cb844ff3)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c