]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Update message DMA buffer allocation
authorLizhi Hou <lizhi.hou@amd.com>
Fri, 19 Dec 2025 01:43:55 +0000 (17:43 -0800)
committerLizhi Hou <lizhi.hou@amd.com>
Thu, 8 Jan 2026 17:48:34 +0000 (09:48 -0800)
commit1222e06934bd6ffa8fe7da0342412f864f6dbddf
treee62ab7a1b82f0fbd0424bc6c7a66a8b3efd060eb
parentadca0ad92717d4752ad520faa667103eafb66195
accel/amdxdna: Update message DMA buffer allocation

The latest firmware requires the message DMA buffer to
  - have a minimum size of 8K
  - use a power-of-two size
  - be aligned to the buffer size
  - not cross 64M boundary

Update the buffer allocation logic to meet these requirements and support
the latest firmware.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20251219014356.2234241-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_error.c
drivers/accel/amdxdna/aie2_message.c
drivers/accel/amdxdna/aie2_pci.h