diff mbox

[Xenial,SRU] powerpc/pseries: Increase RMA size to 512MB.

Message ID 1471527871-15540-1-git-send-email-tim.gardner@canonical.com
State New
Headers show

Commit Message

Tim Gardner Aug. 18, 2016, 1:44 p.m. UTC
From: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>

BugLink: http://bugs.launchpad.net/bugs/1614309

When trying to boot large kernel and initrd images on large systems
(with hundreds of CPUs and Terabytes of memory), we sometimes run out
of memory for the flattened device tree (FDT).

Increase the memory allocated for the Real Mode Area (RMA) to 512MB to
allow more room for the FDT.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
 arch/powerpc/kernel/prom_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Colin Ian King Aug. 18, 2016, 1:48 p.m. UTC | #1
On 18/08/16 14:44, Tim Gardner wrote:
> From: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
> 
> BugLink: http://bugs.launchpad.net/bugs/1614309
> 
> When trying to boot large kernel and initrd images on large systems
> (with hundreds of CPUs and Terabytes of memory), we sometimes run out
> of memory for the flattened device tree (FDT).
> 
> Increase the memory allocated for the Real Mode Area (RMA) to 512MB to
> allow more room for the FDT.
> 
> Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
> ---
>  arch/powerpc/kernel/prom_init.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
> index b7e86e0..6486954 100644
> --- a/arch/powerpc/kernel/prom_init.c
> +++ b/arch/powerpc/kernel/prom_init.c
> @@ -678,7 +678,7 @@ unsigned char ibm_architecture_vec[] = {
>  	W(0xffffffff),			/* virt_base */
>  	W(0xffffffff),			/* virt_size */
>  	W(0xffffffff),			/* load_base */
> -	W(256),				/* 256MB min RMA */
> +	W(512),				/* 512MB min RMA */
>  	W(0xffffffff),			/* full client load */
>  	0,				/* min RMA percentage of total RAM */
>  	48,				/* max log_2(hash table size) */
> 

Looks sane to me.

Acked-by: Colin Ian King <colin.king@canonical.com>
Tim Gardner Aug. 18, 2016, 1:48 p.m. UTC | #2
Of course this is an 'UBUNTU: SAUCE:' patch

On 08/18/2016 07:44 AM, Tim Gardner wrote:
> From: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
> 
> BugLink: http://bugs.launchpad.net/bugs/1614309
> 
> When trying to boot large kernel and initrd images on large systems
> (with hundreds of CPUs and Terabytes of memory), we sometimes run out
> of memory for the flattened device tree (FDT).
> 
> Increase the memory allocated for the Real Mode Area (RMA) to 512MB to
> allow more room for the FDT.
> 
> Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
> ---
>  arch/powerpc/kernel/prom_init.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
> index b7e86e0..6486954 100644
> --- a/arch/powerpc/kernel/prom_init.c
> +++ b/arch/powerpc/kernel/prom_init.c
> @@ -678,7 +678,7 @@ unsigned char ibm_architecture_vec[] = {
>  	W(0xffffffff),			/* virt_base */
>  	W(0xffffffff),			/* virt_size */
>  	W(0xffffffff),			/* load_base */
> -	W(256),				/* 256MB min RMA */
> +	W(512),				/* 512MB min RMA */
>  	W(0xffffffff),			/* full client load */
>  	0,				/* min RMA percentage of total RAM */
>  	48,				/* max log_2(hash table size) */
>
Kamal Mostafa Aug. 18, 2016, 5:18 p.m. UTC | #3
Applied (with "UBUNTU: SAUCE:") to Xenial.

 -Kamal
diff mbox

Patch

diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index b7e86e0..6486954 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -678,7 +678,7 @@  unsigned char ibm_architecture_vec[] = {
 	W(0xffffffff),			/* virt_base */
 	W(0xffffffff),			/* virt_size */
 	W(0xffffffff),			/* load_base */
-	W(256),				/* 256MB min RMA */
+	W(512),				/* 512MB min RMA */
 	W(0xffffffff),			/* full client load */
 	0,				/* min RMA percentage of total RAM */
 	48,				/* max log_2(hash table size) */