]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Fix fatal_error_info layout in firmware interface
authorMax Zhen <max.zhen@amd.com>
Tue, 14 Apr 2026 16:56:24 +0000 (09:56 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 15 Apr 2026 18:03:00 +0000 (11:03 -0700)
commit2d1e82f1224f3109481bb0ed3683e54b09b978e3
tree15a4c7e94830b95c6208395ac441841315a013db
parente94b9f01543cc6a83538c2c2cc645a424d3015ca
accel/amdxdna: Fix fatal_error_info layout in firmware interface

Adjust struct fatal_error_info to match the expected driver/firmware
interface layout.

The structure is used to retrieve debug information from firmware when
a command becomes stuck on the device. The reserved field currently
uses 128 u32 entries, which makes the structure larger than intended
and causes the layout to no longer match the firmware definition.

Reduce the reserved array size from 128 to 127 entries so the
structure matches the expected interface format.

Fixes: 25854131c04a ("accel/amdxdna: Support retrieving hardware context debug information")
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/20260414165625.788853-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_msg_priv.h