From d15217ee1e1f361ab064dfed82252b4124dd6b36 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 3 Feb 2020 14:57:57 +0100 Subject: arm/dma-mapping: allocate swiotlb bottom up Allocate the swiotlb buffer as low as possible to increase the chance of it to be actually addressable. Signed-off-by: Christoph Hellwig --- arch/arm/mm/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 3ef204137e73..3951fcd560ff 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -471,7 +471,9 @@ static void __init free_highpages(void) void __init mem_init(void) { #ifdef CONFIG_ARM_LPAE + memblock_set_bottom_up(true); swiotlb_init(1); + memblock_set_bottom_up(false); #endif set_max_mapnr(pfn_to_page(max_pfn) - mem_map); -- 2.24.1