[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/6] Dynamic allocation of memory regions and IBM vTPM v2
From: |
Stefan Berger |
Subject: |
[PATCH v2 0/6] Dynamic allocation of memory regions and IBM vTPM v2 |
Date: |
Thu, 1 Dec 2022 16:11:55 -0500 |
Hello,
This is an addition to the series sent from Daniel Axtens
(https://lists.gnu.org/archive/html/grub-devel/2022-04/msg00064.html).
Patch 'ieee1275: request memory with ibm,client-architecture-support'
implements vectors 1-4 of client-architecture-support negotiation
However, during some tests, we found this can be a problem if:
- we have more than 64 CPUs
- Hardware Management Console (HMC) is configured to minimum of CPUs >64 (for
example, min of 200 CPUs)
- Grub needs to request memory.
If vector 5 is not implemented, Power Hypervisor will consider the default
value for vector 5 and 64 will bet set as the maximum
number of CPUs supported by the OS, causing the machine to fail to init.
Today we support 256 CPUs (max) on Power, so we need to implement vector 5
and set the MAX CPUs bits to this value.
Stefan
v2:
- Followed Daniel K.'s list of suggestions checking the list more than
twice and adjusted formatting, line breaks, etc. in all patches
- Conditional compilation of ppc64-specific code using #ifdef __powerpc__
- Fixing of installation of memtool; adding of warning message for
__powerpc__ since it requires a reboot after running memory stress test
- Tested it on i386-pc and PowerKVM
Daniel Axtens (4):
ieee1275: request memory with ibm, client-architecture-support
ieee1275: drop len -= 1 quirk in heap_init
ieee1275: support runtime memory claiming
Add memtool module with memory allocation stress-test
Diego Domingos (1):
ieee1275: implement vec5 for cas negotiation
Stefan Berger (1):
ibmvtpm: Add support for trusted boot using a vTPM 2.0
configure.ac | 1 +
docs/grub-dev.texi | 7 +-
docs/grub.texi | 3 +-
grub-core/Makefile.core.def | 13 +
grub-core/commands/ieee1275/ibmvtpm.c | 151 +++++++++
grub-core/commands/memtools.c | 160 ++++++++++
grub-core/kern/ieee1275/cmain.c | 3 +
grub-core/kern/ieee1275/init.c | 443 +++++++++++++++++++++++++-
grub-core/kern/mm.c | 4 +
include/grub/ieee1275/ieee1275.h | 11 +
10 files changed, 779 insertions(+), 17 deletions(-)
create mode 100644 grub-core/commands/ieee1275/ibmvtpm.c
create mode 100644 grub-core/commands/memtools.c
--
2.25.1
- [PATCH v2 0/6] Dynamic allocation of memory regions and IBM vTPM v2,
Stefan Berger <=