]> git.ipfire.org Git - thirdparty/openwrt.git/commit
ramips: reduce ARCH_DMA_MINALIGN 23314/head
authorQingfang Deng <dqfext@gmail.com>
Wed, 27 May 2026 01:29:06 +0000 (09:29 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 27 May 2026 22:33:18 +0000 (00:33 +0200)
commit0bc1d99bcf774a54a2c0443ff48c97eab565c4cc
tree3b8832456498920d3ecf14090c7945dbdaf4e1b6
parent028dc3f57a6f9430181587a5af34d0cb7e9a442e
ramips: 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 <dqfext@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23314
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/patches-6.18/110-MIPS-ralink-reduce-ARCH_DMA_MINALIGN.patch [new file with mode: 0644]