Skip to content

Commit 399da29

Browse files
lategoodbyeRussell King (Oracle)
authored andcommitted
ARM: 9323/1: mm: Fix ARCH_LOW_ADDRESS_LIMIT when CONFIG_ZONE_DMA
Configuring VMSPLIT_2G + LPAE on Raspberry Pi 4 leads to SWIOTLB buffer allocation beyond platform dma_zone_size of SZ_1G, which results in broken SD card boot. So fix this be setting ARCH_LOW_ADDRESS_LIMIT in CONFIG_ZONE_DMA case. Suggested-by: Russell King <rmk+kernel@armlinux.org.uk> Fixes: e9faf9b ("ARM: add multi_v7_lpae_defconfig") Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent 3562257 commit 399da29

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • arch/arm/include/asm

arch/arm/include/asm/dma.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
extern phys_addr_t arm_dma_zone_size; \
1313
arm_dma_zone_size && arm_dma_zone_size < (0x100000000ULL - PAGE_OFFSET) ? \
1414
(PAGE_OFFSET + arm_dma_zone_size) : 0xffffffffUL; })
15+
16+
extern phys_addr_t arm_dma_limit;
17+
#define ARCH_LOW_ADDRESS_LIMIT arm_dma_limit
1518
#endif
1619

1720
#ifdef CONFIG_ISA_DMA_API

0 commit comments

Comments
 (0)