Skip to content

Commit 676e778

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 b5304a9 commit 676e778

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
@@ -133,7 +133,8 @@ config ARM64
133133
select CRC32
134134
select DCACHE_WORD_ACCESS
135135
select DYNAMIC_FTRACE if FUNCTION_TRACER
136-
select DMA_BOUNCE_UNALIGNED_KMALLOC
136+
# Disable this to save 64MB when DMA controllers can reach all of RAM
137+
# select DMA_BOUNCE_UNALIGNED_KMALLOC
137138
select DMA_DIRECT_REMAP
138139
select EDAC_SUPPORT
139140
select FRAME_POINTER

0 commit comments

Comments
 (0)