linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] powerpc: increase MIN RMA size for CAS negotiation
@ 2025-01-23 11:42 Sourabh Jain
  2025-01-23 11:42 ` [PATCH v3 1/4] powerpc: export MIN RMA size Sourabh Jain
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Sourabh Jain @ 2025-01-23 11:42 UTC (permalink / raw)
  To: linuxppc-dev
  Cc: Sourabh Jain, Avnish Chouhan, Brian King, Hari Bathini,
	Madhavan Srinivasan, Michael Ellerman, Mahesh Salgaonkar

Change RMA size from 512 MB to 768 MB which will result
in more RMA at boot time for PowerPC. When PowerPC LPAR use/uses vTPM,
Secure Boot or FADump, the 512 MB RMA memory is not sufficient for
booting. With this 512 MB RMA, GRUB2 run out of memory and unable to
load the necessary. Sometimes even usage of CDROM which requires more
memory for installation along with the options mentioned above troubles
the boot memory and result in boot failures. Increasing the RMA size
will resolves multiple out of memory issues observed in PowerPC.

Due to the change in the MIN_RMA size, there is an impact on the
additional parameter for the FADump feature in HASH MMU. The first two
patches in this series update the memory allocation policy for the
additional parameter in FADump for HASH MMU to mitigate that impact.

Patch 01/04: Exports the `MIN_RMA` so that the FADump code can access
             it.
Patch 02/04: Changes the memory reservation policy for the FADump
             additional parameter in HASH MMU.
Patch 03/04: Change MIN_RMA to 768MB
Patch 04/04: Update fadump document to include details about the
             additional parameter feature

Note: This policy change does not impact the RADIX MMU additional
      parameter for the FADump feature.

Testing Done:  
=============
The patch series has been tested with the following four scenarios, and
both the production kernel and FADump kernel boot successfully.  

- Distro: RHEL 9.6

1. Production Kernel: RADIX MMU
   FADump Kernel:     RADIX MMU
   - MIN_RMA: 768 MB
   - RMA:     1 GB
     - a. crashkernel: 4 GB
     - b. crashkernel: 1 GB

2. Production Kernel: HASH MMU
   FADump Kernel:   HASH MMU
   - MIN_RMA: 768 MB
   - RMA:     1 GB
     - a. crashkernel: 768 MB
     - b. crashkernel: 1 GB


Changelog:
==========

MIN RMA change
---------------
v1: https://lore.kernel.org/all/20241205101045.27069-1-avnish@linux.ibm.com/

v2: https://lore.kernel.org/all/20241206065545.14815-1-avnish@linux.ibm.com/
 - Added GRUB2 debug logs and Kernel traces.

Fadump Fixes
-------------
v1:
To address the FADump issue introduced due to the change in MIN_RMA, patches were sent:
https://lore.kernel.org/all/20250120173501.1147236-1-sourabhjain@linux.ibm.com/

Based on the comments on the FADump fixes patch series above, it was
suggested that it would be better to fix the FADump issue before
making the MIN_RMA change.

Merged the FADump fixes and MIN_RMA change into a single patch series.
-----------------------------------------------------------------------
v3:
 - This avoids the impact on FADump caused by the MIN_RMA change.
 - Since the policy for FADump memory reservation for the additional
   parameter is changing for HASH MMU, the corresponding FADump
   documentation is also updated to reflect this change in patch 04/04.
 - Add Reviewed-by tag

Cc: Avnish Chouhan <avnish@linux.ibm.com>
Cc: Brian King <brking@linux.ibm.com>
Cc: Hari Bathini <hbathini@linux.ibm.com>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Cc: Sourabh Jain <sourabhjain@linux.ibm.com>

Avnish Chouhan (1):
  powerpc: increase MIN RMA size for CAS negotiation

Sourabh Jain (3):
  powerpc: export MIN RMA size
  powerpc/fadump: fix additional param memory reservation for HASH MMU
  Documentation/powerpc/fadump: add additional parameter feature details

 Documentation/ABI/testing/sysfs-kernel-fadump |  3 ++-
 .../arch/powerpc/firmware-assisted-dump.rst   | 22 +++++++++++++++++++
 arch/powerpc/include/asm/prom.h               |  2 ++
 arch/powerpc/kernel/fadump.c                  | 21 +++++++++---------
 arch/powerpc/kernel/prom_init.c               |  2 +-
 5 files changed, 38 insertions(+), 12 deletions(-)

-- 
2.48.1



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-02-17  7:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-23 11:42 [PATCH v3 0/4] powerpc: increase MIN RMA size for CAS negotiation Sourabh Jain
2025-01-23 11:42 ` [PATCH v3 1/4] powerpc: export MIN RMA size Sourabh Jain
2025-01-23 11:42 ` [PATCH v3 2/4] powerpc/fadump: fix additional param memory reservation for HASH MMU Sourabh Jain
2025-02-10  7:18   ` Hari Bathini
2025-02-11  3:49     ` Sourabh Jain
2025-01-23 11:42 ` [PATCH v3 3/4] powerpc: increase MIN RMA size for CAS negotiation Sourabh Jain
2025-01-23 11:42 ` [PATCH v3 4/4] Documentation/powerpc/fadump: add additional parameter feature details Sourabh Jain
2025-01-26 12:01   ` Mahesh J Salgaonkar
2025-01-27  3:25     ` Sourabh Jain
2025-02-10  7:16   ` Hari Bathini
2025-02-17  7:28 ` [PATCH v3 0/4] powerpc: increase MIN RMA size for CAS negotiation Madhavan Srinivasan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).