]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/prom: Increase minimum RMA size to 512MB
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Mon, 27 Mar 2017 23:43:14 +0000 (19:43 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Apr 2017 03:27:59 +0000 (13:27 +1000)
commita0eecffc2b125cc8e8d8c3c5fd40959ee67f8a47
treee7fa7704e2107af08b81d49e14d7d0cba9f3cf5a
parent3c06842eef12080cba0c0e170af6365e41161602
powerpc/prom: Increase minimum RMA size to 512MB

When booting very large systems with a large initrd, we run out of
space early in boot for either RTAS or the flattened device tree (FDT).
Boot fails with messages like:

Could not allocate memory for RTAS
or
No memory for flatten_device_tree (no room)

Increasing the minimum RMA size to 512MB fixes the problem. This
should not have an impact on smaller LPARs (with 256MB memory),
as the firmware will cap the RMA to the memory assigned to the LPAR.

Fix is based on input/discussions with Michael Ellerman. Thanks to
Praveen K. Pandey for testing on a large system.

Reported-by: Praveen K. Pandey <preveen.pandey@in.ibm.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom_init.c