浏览代码

powerpc/book3e-64: Don't limit paca to 256 MiB

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>
Scott Wood 9 年之前
父节点
当前提交
ecc4999f68
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      arch/powerpc/kernel/paca.c

+ 7 - 2
arch/powerpc/kernel/paca.c

@@ -204,14 +204,19 @@ static int __initdata paca_size;
 
 
 void __init allocate_pacas(void)
 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
 	 * 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
 	 * in real mode, so allocate them within the RMA and also within
 	 * the first segment.
 	 * 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);
 	paca_size = PAGE_ALIGN(sizeof(struct paca_struct) * nr_cpu_ids);