powerpc/book3e-64: Don't limit paca to 256 MiB
authorScott Wood <scottwood@freescale.com>
Wed, 7 Oct 2015 03:48:17 +0000 (22:48 -0500)
committerScott Wood <scottwood@freescale.com>
Tue, 27 Oct 2015 23:13:28 +0000 (18:13 -0500)
This limit only makes sense on book3s, and on book3e it can cause
problems with kdump if we don't have any memory under 256 MiB.

Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/kernel/paca.c

index 5a23b69f8129721f51e5f9d52f621888ba1c131a..01ea0edf0579a3eefb67c65dcb535797a1e4ac63 100644 (file)
@@ -204,14 +204,19 @@ static int __initdata paca_size;
 
 void __init allocate_pacas(void)
 {
-       int cpu, limit;
+       u64 limit;
+       int cpu;
 
+       limit = ppc64_rma_size;
+
+#ifdef CONFIG_PPC_BOOK3S_64
        /*
         * We can't take SLB misses on the paca, and we want to access them
         * in real mode, so allocate them within the RMA and also within
         * the first segment.
         */
-       limit = min(0x10000000ULL, ppc64_rma_size);
+       limit = min(0x10000000ULL, limit);
+#endif
 
        paca_size = PAGE_ALIGN(sizeof(struct paca_struct) * nr_cpu_ids);