linux/include/net/mana
Haiyang Zhang 382d1741b5 net: mana: Add support for page sizes other than 4KB on ARM64
As defined by the MANA Hardware spec, the queue size for DMA is 4KB
minimal, and power of 2. And, the HWC queue size has to be exactly
4KB.

To support page sizes other than 4KB on ARM64, define the minimal
queue size as a macro separately from the PAGE_SIZE, which we always
assumed it to be 4KB before supporting ARM64.

Also, add MANA specific macros and update code related to size
alignment, DMA region calculations, etc.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/1718655446-6576-1-git-send-email-haiyangz@microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-06-18 18:21:18 -07:00
..
gdma.h net: mana: Add support for page sizes other than 4KB on ARM64 2024-06-18 18:21:18 -07:00
hw_channel.h net: mana: Annotate struct hwc_dma_buf with __counted_by 2023-10-02 11:24:54 -07:00
mana_auxiliary.h
mana.h net: mana: Add support for page sizes other than 4KB on ARM64 2024-06-18 18:21:18 -07:00
shm_channel.h