]> git.hungrycats.org Git - linux/commit
accel/amdxdna: Return errors for failed debug BO commands
authorLizhi Hou <lizhi.hou@amd.com>
Fri, 29 May 2026 16:21:22 +0000 (09:21 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 3 Jun 2026 18:47:12 +0000 (11:47 -0700)
commit62c1671f6454ceaa80e9ceff63f821aa36f35154
treed63a77b7f1895fabc09e6a9b99f3180c8779cb70
parent5d12ef71fbfd3b46c1319074e50f814215ae7f3b
accel/amdxdna: Return errors for failed debug BO commands

The config and sync debug BO commands currently may report success even
when the operation fails.

Capture the firmware return status and propagate the corresponding error
to userspace.

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