From: Christophe Leroy Date: Thu, 21 Feb 2019 19:08:41 +0000 (+0000) Subject: powerpc/32: always populate page tables for Abatron BDI. X-Git-Tag: v5.1-rc1~128^2~60 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=d2f15e0979ee779649dec730cf17511b6f79e5be;p=linux.git powerpc/32: always populate page tables for Abatron BDI. When CONFIG_BDI_SWITCH is set, the page tables have to be populated allthough large TLBs are used, because the BDI switch knows nothing about those large TLBs which are handled directly in TLB miss logic. Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index c4b0eb51f6d8..a000768a5cc9 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c @@ -263,7 +263,10 @@ void __init mapin_ram(void) if (base >= top) continue; base = mmu_mapin_ram(base, top); - __mapin_ram_chunk(base, top); + if (IS_ENABLED(CONFIG_BDI_SWITCH)) + __mapin_ram_chunk(reg->base, top); + else + __mapin_ram_chunk(base, top); } }