Skip to contentSkip to conversation

powerpc/prom: Increase RMA size to 512MB

PATCH Applied Sukadev Bhattiprolu 2 participants 2 messages Mar 30, 2017 – Apr 6, 2017 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/prom: Increase RMA size to 512MB

Quoted 1 line

From 3ae8d1ed31b01b92b172fe20e4560cfbfab135ec Mon Sep 17 00:00:00 2001

From: root <[email protected]>
Date: Mon, 27 Mar 2017 19:43:14 -0400
Subject: [PATCH] powerpc/prom: Increase RMA size to 512MB

When booting very large systems with a large initrd, we run out of space for either the 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.

---
 arch/powerpc/kernel/prom_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/prom_init.c +1 -1
index 1c1b44e..dd8a04f 100644
@@ -815,7 +815,7 @@ struct ibm_arch_vec __cacheline_aligned ibm_architecture_vec = {
 		.virt_base = cpu_to_be32(0xffffffff),
 		.virt_size = cpu_to_be32(0xffffffff),
 		.load_base = cpu_to_be32(0xffffffff),
-		.min_rma = cpu_to_be32(256),		/* 256MB min RMA */
+		.min_rma = cpu_to_be32(512),		/* 512MB min RMA */
 		.min_load = cpu_to_be32(0xffffffff),	/* full client load */
 		.min_rma_percent = 0,	/* min RMA percentage of total RAM */
 		.max_pft_size = 48,	/* max log_2(hash table size) */
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 17 lines · Sukadev Bhattiprolu
Quoted 1 line

From 3ae8d1ed31b01b92b172fe20e4560cfbfab135ec Mon Sep 17 00:00:00 2001

From: root <[email protected]>
Date: Mon, 27 Mar 2017 19:43:14 -0400
Subject: [PATCH] powerpc/prom: Increase RMA size to 512MB

When booting very large systems with a large initrd, we run out of space for either the 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.

Quoted 5 lines

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

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/687da8fce1682c9f1e87530e731189

cheers