powerpc/32: always populate page tables for Abatron BDI.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 21 Feb 2019 19:08:41 +0000 (19:08 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 23 Feb 2019 10:04:32 +0000 (21:04 +1100)
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 <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable_32.c

index c4b0eb51f6d80939800592ee75d43ab93170dbf8..a000768a5cc9110e1b6df4797ea0ad5b92d9fab1 100644 (file)
@@ -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);
        }
 }