]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
accel/amdxdna: Fix incorrect command state for timed out job
authorLizhi Hou <lizhi.hou@amd.com>
Wed, 29 Oct 2025 19:34:23 +0000 (12:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:45 +0000 (14:02 +0100)
commit14700e6b28f3e21fe9fe2f506b6d4e45c289f37f
tree31e3d52484718a0d15fe8435b9cd28393c954180
parent30f32fa4d2331896ae05ac75dfc06aaa007a35d6
accel/amdxdna: Fix incorrect command state for timed out job

[ Upstream commit 6fb7f298883246e21f60f971065adcb789ae6eba ]

When a command times out, mark it as ERT_CMD_STATE_TIMEOUT. Any other
commands that are canceled due to this timeout should be marked as
ERT_CMD_STATE_ABORT.

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/20251029193423.2430463-1-lizhi.hou@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/accel/amdxdna/aie2_ctx.c
drivers/accel/amdxdna/amdxdna_ctx.h