diff options
| author | Lizhi Hou <lizhi.hou@amd.com> | 2025-12-09 13:16:39 -0800 |
|---|---|---|
| committer | Lizhi Hou <lizhi.hou@amd.com> | 2025-12-10 09:07:18 -0800 |
| commit | 3d32eb7a5ecff92d83a5fd34c45c171c17d3d5d0 (patch) | |
| tree | f1a87f9bc963167be739a2943b5a9b24aba3fedf /include | |
| parent | ff9e240212f6693c293f9e58ade05bc887297a1e (diff) | |
accel/amdxdna: Fix cu_idx being cleared by memset() during command setup
For one command type, cu_idx is assigned before calling memset() on the
command structure. This results in cu_idx being overwritten, causing the
firmware to receive an incomplete or invalid command and leading to
unexpected command failures.
Fix this by moving the memset() call before initializing cu_idx so that
all fields are populated in the correct order.
Fixes: 71829d7f2f70 ("accel/amdxdna: Use MSG_OP_CHAIN_EXEC_NPU when supported")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20251209211639.1636888-1-lizhi.hou@amd.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
