Bug 1226530

Summary: [Trackerbug] Mana: Add support for page sizes other than 4KB on ARM64
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP5 Reporter: Dongha Paek <donghapaek>
Component: KernelAssignee: Thomas Bogendoerfer <tbogendoerfer>
Status: NEW --- QA Contact:
Severity: Normal    
Priority: P3 - Medium CC: afaerber, arm-bugs, donghapaek, haiyangz, hare, ivan.ivanov, jaboutboul, kkashanjat, mbenes
Version: unspecified   
Target Milestone: ---   
Hardware: aarch64   
OS: Linux   
See Also: https://bugzilla.suse.com/show_bug.cgi?id=1224391
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Dongha Paek 2024-06-19 16:17:25 UTC
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.

https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=382d1741b5b2
Comment 1 Miroslav Beneš 2024-06-20 11:58:55 UTC
Could you specify where exactly you want the patch to be backported to, please? I guess SLE15-SP5 and later?

There will be kABI breakage I think.
Comment 2 Dongha Paek 2024-06-20 18:41:06 UTC
We need it to be backported to all release that is still supported by SUSE (supposedly SLES 12 SP5 and after) that has MANA support.
Comment 6 Andreas Färber 2024-06-24 11:56:34 UTC
An ECO for bug #1224391 adding arm64 support had already been approved.
Reassigning to network team to have this additional change be considered.