]> 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:21:45 +0000 (16:21 -0500)
commitba205ac3d6e83f56c4f824f23f1b4522cb844ff3
tree65049a6a3230300a12ad56a2b42dc022de3d7838
parent637fee3954d4bd509ea9d95ad1780fc174489860
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c