]> git.hungrycats.org Git - linux/commit
MIPS: ralink: reduce ARCH_DMA_MINALIGN
authorQingfang Deng <qingfang.deng@linux.dev>
Tue, 28 Apr 2026 08:25:40 +0000 (16:25 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 26 May 2026 14:35:37 +0000 (16:35 +0200)
commit1dc85756b759c3ecd21a22b0aef84ed41ddc7596
tree4b6ac8db10461c1ea2915fd5e64621f4fc84ee40
parenteb013e9685e2ec6e608bbeb79e7ce98782fdcc63
MIPS: ralink: reduce ARCH_DMA_MINALIGN

Currently, Ralink SoCs use the default ARCH_DMA_MINALIGN value of 128
bytes defined in mach-generic. This is excessive for these platforms
and leads to significant memory waste in kmalloc.

Override ARCH_DMA_MINALIGN to use L1_CACHE_BYTES, which is 16 bytes for
RT288X and 32 bytes for other Ralink SoCs.

Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mach-ralink/kmalloc.h [new file with mode: 0644]