summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/wangxun
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2024-06-17 13:17:26 -0700
committerJakub Kicinski <kuba@kernel.org>2024-06-18 18:21:18 -0700
commit382d1741b5b2feffef7942dd074206372afe1a96 (patch)
treeb303eb04982881fcddbc510c22697a7437103062 /drivers/net/ethernet/wangxun
parent2c6a4b969c1fb8277421374caa5299a6620b5691 (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/wangxun')
0 files changed, 0 insertions, 0 deletions