Skip to content

Commit

Permalink
arm64/Kconfig: Don't set DMA_BOUNCE_UNALIGNED_KMALLOC
Browse files Browse the repository at this point in the history
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 <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Feb 21, 2024
1 parent a6b8a25 commit 3e0065d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm64/Kconfig
Expand Up @@ -122,7 +122,8 @@ config ARM64
select CRC32
select DCACHE_WORD_ACCESS
select DYNAMIC_FTRACE if FUNCTION_TRACER
select DMA_BOUNCE_UNALIGNED_KMALLOC
# Disable this to save 64MB when DMA controllers can reach all of RAM
# select DMA_BOUNCE_UNALIGNED_KMALLOC
select DMA_DIRECT_REMAP
select EDAC_SUPPORT
select FRAME_POINTER
Expand Down

0 comments on commit 3e0065d

Please sign in to comment.