powerpc/mm/radix: Don't do SLB preload when using the radix MMU
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 9 Apr 2019 04:03:28 +0000 (09:33 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Apr 2019 12:02:26 +0000 (22:02 +1000)
Add radix_enabled() check to avoid SLB preload with radix translation.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/process.c

index dd9e0d5..f7b2e3b 100644 (file)
@@ -1729,7 +1729,8 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
        unsigned long load_addr = regs->gpr[2]; /* saved by ELF_PLAT_INIT */
 
 #ifdef CONFIG_PPC_BOOK3S_64
-       preload_new_slb_context(start, sp);
+       if (!radix_enabled())
+               preload_new_slb_context(start, sp);
 #endif
 #endif