]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Handle DETACH_DEBUG_BO through config_debug_bo path
authorMax Zhen <max.zhen@amd.com>
Mon, 6 Apr 2026 21:14:03 +0000 (14:14 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Tue, 7 Apr 2026 17:17:40 +0000 (10:17 -0700)
commitf844177c6811fd322aa84ed5c32f0e39743446c2
tree82f18f11af7a00a4454f44cefddb392b18c8e758
parentdc2d30e7db8321a6696d266838f7af7e9d1c7155
accel/amdxdna: Handle DETACH_DEBUG_BO through config_debug_bo path

Route DETACH_DEBUG_BO through aie2_config_debug_bo() the same way as
ATTACH_DEBUG_BO.

The scheduler switch in aie2_sched_job_run() already handles
ATTACH_DEBUG_BO with aie2_config_debug_bo(), but DETACH_DEBUG_BO was
not included in that path. Add an explicit fallthrough so both attach
and detach operations use the same handler.

This fixes debug BO detach handling by ensuring the detach command is
processed by the expected configuration path.

Fixes: 7ea046838021 ("accel/amdxdna: Support firmware debug buffer")
Signed-off-by: Max Zhen <max.zhen@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260406211403.4011988-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_ctx.c