]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Jan 2026 21:35:00 +0000 (16:35 -0500)
commitb1defcdc4457649db236415ee618a7151e28788c
treeb4c1b1e04f1950e0f12e8a4b7ecc83d0f0972dad
parente7fbff9e7622a00c2b53cb14df481916f0019742
drm/amdgpu: Fix cond_exec handling in amdgpu_ib_schedule()

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
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c