linux-yocto/include/net/mana
Haiyang Zhang 6c95c700f2 net: mana: Add support for page sizes other than 4KB on ARM64
[ Upstream commit 382d1741b5 ]

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>
Stable-dep-of: 9e517a8e9d ("RDMA/mana_ib: use the correct page table index based on hardware page size")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-10 11:58:03 +02:00
..
gdma.h net: mana: Add support for page sizes other than 4KB on ARM64 2024-10-10 11:58:03 +02:00
hw_channel.h net: mana: Configure hwc timeout from hardware 2023-08-04 09:02:55 +01:00
mana_auxiliary.h
mana.h net: mana: Add support for page sizes other than 4KB on ARM64 2024-10-10 11:58:03 +02:00
shm_channel.h