Skip to content

Commit 6dfbd2a

Browse files
pelwellpopcornmix
authored andcommitted
arm64/Kconfig: Don't set DMA_BOUNCE_UNALIGNED_KMALLOC
If enabled, DMA_BOUNCE_UNALIGNED_KMALLOC causes the swiotlb buffers (64MB, by default) to be allocated, even on systems where the DMA controller can reach all of RAM. This is a huge amount of RAM to waste on a device with only 512MB to start with, such as the Zero 2 W. See: #5975 Signed-off-by: Phil Elwell <[email protected]>
1 parent 7008bd3 commit 6dfbd2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm64/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ config ARM64
137137
select CRC32
138138
select DCACHE_WORD_ACCESS
139139
select DYNAMIC_FTRACE if FUNCTION_TRACER
140-
select DMA_BOUNCE_UNALIGNED_KMALLOC
140+
# Disable this to save 64MB when DMA controllers can reach all of RAM
141+
# select DMA_BOUNCE_UNALIGNED_KMALLOC
141142
select DMA_DIRECT_REMAP
142143
select EDAC_SUPPORT
143144
select FRAME_POINTER

0 commit comments

Comments
 (0)