Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc: export MIN RMA size

Commit 683eab94da75bc ("powerpc/fadump: setup additional parameters for
dump capture kernel") introduced the additional parameter feature in
fadump for HASH MMU with the understanding that GRUB does not use the
memory area between 640MB and 768MB for its operation.

However, the third patch ("powerpc: increase MIN RMA size for CAS
negotiation") in this series is changing the MIN RMA size to 768MB,
allowing GRUB to use memory up to 768MB. This makes the fadump
reservation for the additional parameter feature for HASH MMU
unreliable.

To address this, export the MIN_RMA so that the next patch
("powerpc/fadump: fix additional param memory reservation for HASH MMU")
can identify the correct memory range for the additional parameter
feature in fadump for HASH MMU.

Reviewed-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250123114254.200527-2-sourabhjain@linux.ibm.com

authored by

Sourabh Jain and committed by
Madhavan Srinivasan
0bdd7ff5 a64dcfb4

+3 -1
+2
arch/powerpc/include/asm/prom.h
··· 17 17 struct device_node; 18 18 struct property; 19 19 20 + #define MIN_RMA 512 /* Minimum RMA (in MB) for CAS negotiation */ 21 + 20 22 #define OF_DT_BEGIN_NODE 0x1 /* Start of node, full name */ 21 23 #define OF_DT_END_NODE 0x2 /* End node */ 22 24 #define OF_DT_PROP 0x3 /* Property: name off, size,
+1 -1
arch/powerpc/kernel/prom_init.c
··· 1061 1061 .virt_base = cpu_to_be32(0xffffffff), 1062 1062 .virt_size = cpu_to_be32(0xffffffff), 1063 1063 .load_base = cpu_to_be32(0xffffffff), 1064 - .min_rma = cpu_to_be32(512), /* 512MB min RMA */ 1064 + .min_rma = cpu_to_be32(MIN_RMA), 1065 1065 .min_load = cpu_to_be32(0xffffffff), /* full client load */ 1066 1066 .min_rma_percent = 0, /* min RMA percentage of total RAM */ 1067 1067 .max_pft_size = 48, /* max log_2(hash table size) */