diff options
author | Lizhi Hou <lizhi.hou@amd.com> | 2025-04-09 14:00:13 -0700 |
---|---|---|
committer | Lizhi Hou <lizhi.hou@amd.com> | 2025-04-10 10:45:39 -0700 |
commit | 6c161732ea6467c6dea0c35810ca8e8d1ae135f1 (patch) | |
tree | 04ab083a2d4f02718e3511178895d8f9b287315f /drivers/platform/x86/classmate-laptop.c | |
parent | c180b00366d99911f4573dca5ac97a8633f2e8f9 (diff) |
accel/amdxdna: Fix incorrect size of ERT_START_NPU commandsHEADfor-linux-nextdrm-misc-next
When multiple ERT_START_NPU commands are combined in one buffer, the
buffer size calculation is incorrect. Also, the condition to make sure
the buffer size is not beyond 4K is also fixed.
Fixes: aac243092b70 ("accel/amdxdna: Add command execution")
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://lore.kernel.org/r/20250409210013.10854-1-lizhi.hou@amd.com
Diffstat (limited to 'drivers/platform/x86/classmate-laptop.c')
0 files changed, 0 insertions, 0 deletions