Skip to content

Commit dedf4c4

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 f856f43 commit dedf4c4

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
@@ -135,7 +135,8 @@ config ARM64
135135
select CRC32
136136
select DCACHE_WORD_ACCESS
137137
select DYNAMIC_FTRACE if FUNCTION_TRACER
138-
select DMA_BOUNCE_UNALIGNED_KMALLOC
138+
# Disable this to save 64MB when DMA controllers can reach all of RAM
139+
# select DMA_BOUNCE_UNALIGNED_KMALLOC
139140
select DMA_DIRECT_REMAP
140141
select EDAC_SUPPORT
141142
select FRAME_POINTER

0 commit comments

Comments
 (0)