parisc: Increase KERNEL_INITIAL_SIZE for 32-bit SMP kernels
authorHelge Deller <deller@gmx.de>
Fri, 7 Oct 2016 16:19:55 +0000 (18:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Oct 2016 07:01:26 +0000 (03:01 -0400)
commit97ba83a01c8c835e581b1451276716d5cef48e11
tree1d58e96512106a2d29a162184d75f3022f833214
parentd756b52c8bbe7735cc881dab46378518d2d4b1f1
parisc: Increase KERNEL_INITIAL_SIZE for 32-bit SMP kernels

commit 690d097c00c88fa9d93d198591e184164b1d8c20 upstream.

Increase the initial kernel default page mapping size for SMP kernels to 32MB
and add a runtime check which panics early if the kernel is bigger than the
initial mapping size.

This fixes boot crashes of 32bit SMP kernels. Due to the introduction of huge
page support in kernel 4.4 and it's required initial kernel layout in memory, a
32bit SMP kernel usually got bigger (in layout, not size) than 16MB.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/pgtable.h
arch/parisc/kernel/setup.c