]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Fill invalid payload for failed command
authorLizhi Hou <lizhi.hou@amd.com>
Fri, 27 Feb 2026 00:48:41 +0000 (16:48 -0800)
committerLizhi Hou <lizhi.hou@amd.com>
Sat, 28 Feb 2026 07:01:36 +0000 (23:01 -0800)
commit89ff45359abbf9d8d3c4aa3f5a57ed0be82b5a12
treefbe8ce5cac4e8f1e1050b20cf10c3c5f13136a17
parent6e3f4514e3b432871ac81717d24f56b441857f77
accel/amdxdna: Fill invalid payload for failed command

Newer userspace applications may read the payload of a failed command
to obtain detailed error information. However, the driver and old firmware
versions may not support returning advanced error information.
In this case, initialize the command payload with an invalid value so
userspace can detect that no detailed error information is available.

Fixes: aac243092b70 ("accel/amdxdna: Add command execution")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260227004841.3080241-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_ctx.c
drivers/accel/amdxdna/amdxdna_ctx.c
drivers/accel/amdxdna/amdxdna_ctx.h