From: Max Zhen Date: Mon, 6 Apr 2026 21:14:03 +0000 (-0700) Subject: accel/amdxdna: Handle DETACH_DEBUG_BO through config_debug_bo path X-Git-Tag: v7.2-rc1~141^2~26^2~156 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=f844177c6811fd322aa84ed5c32f0e39743446c2;p=thirdparty%2Flinux.git 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 Reviewed-by: Mario Limonciello (AMD) Signed-off-by: Lizhi Hou Link: https://patch.msgid.link/20260406211403.4011988-1-lizhi.hou@amd.com --- diff --git a/drivers/accel/amdxdna/aie2_ctx.c b/drivers/accel/amdxdna/aie2_ctx.c index 8db32f8e2362d..f97755d60fa35 100644 --- a/drivers/accel/amdxdna/aie2_ctx.c +++ b/drivers/accel/amdxdna/aie2_ctx.c @@ -360,6 +360,7 @@ aie2_sched_job_run(struct drm_sched_job *sched_job) ret = aie2_sync_bo(hwctx, job, aie2_sched_drvcmd_resp_handler); break; case ATTACH_DEBUG_BO: + case DETACH_DEBUG_BO: ret = aie2_config_debug_bo(hwctx, job, aie2_sched_drvcmd_resp_handler); break; default: