All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/15] Dynamic allocation of memory regions and IBM vTPM v2
@ 2022-04-21  5:24 Daniel Axtens
  2022-04-21  5:24 ` [PATCH v3 01/15] grub-shell: only pass SeaBIOS fw_opt in for x86 BIOS platforms Daniel Axtens
                   ` (14 more replies)
  0 siblings, 15 replies; 20+ messages in thread
From: Daniel Axtens @ 2022-04-21  5:24 UTC (permalink / raw)
  To: grub-devel; +Cc: leif, stefanb, ps, dkiper, Daniel Axtens

Hi,

This is a small update to v2
(https://lists.gnu.org/archive/html/grub-devel/2022-03/msg00242.html)

Changes since v2:

 - A fix to patch 11 that does IBM CAS, as it turns out my old approach
   caused some more extreme configurations to fail to boot. Oops.
 - Code style fixes (tabs vs spaces).
 - Add Daniel's R-Bs.

This series is also available on github.com/daxtens/grub branch
memrework+vtpm-202204

The v2 cover letter:

This is, at long last, an updated version of my series extending Patrick's
dynamic memory regions to ieee1275.

Noteworthy changes:

 - reworked debug prints as grub_dprintfs. Folded the ieee1275 ones into the
   ieee1275 patches.

 - reworked the ieee1275 runtime memory claiming to be more resilient and better
   documented.

 - fixed comment style and hopefully addressed all other change requests.

 - grub will now try asking for contiguous memory and then, if that fails, for
   discontiguous memory - in case region merging with the discontiguous memory
   is sufficient to allow the eventual allocation to succeed.

 - The ieee1275 code agressively rounds up the size of the region for a dynamic
   allocation - it will now retry with a more precise size if the larger
   allocation fails.

The memtool module is included as an RFC only and will require more work, as
discussed in the patch.

I've also included Stefan's vTPM patch - Stefan kindly tested that his patch
worked with my memory rework series. I have added his tested-by to relevant
Power-specific patches only.

Kind regards,
Daniel

Daniel Axtens (8):
  grub-shell: only pass SeaBIOS fw_opt in for x86 BIOS platforms
  mm: assert that we preserve header vs region alignment
  mm: when adding a region, merge with region after as well as before
  mm: debug support for region operations
  ieee1275: request memory with ibm,client-architecture-support
  ieee1275: drop len -= 1 quirk in heap_init
  ieee1275: support runtime memory claiming
  [RFC] Add memtool module with memory allocation stress-test

Patrick Steinhardt (6):
  mm: Drop unused unloading of modules on OOM
  mm: Allow dynamically requesting additional memory regions
  efi: mm: Always request a fixed number of pages on init
  efi: mm: Extract function to add memory regions
  efi: mm: Pass up errors from `add_memory_regions ()`
  efi: mm: Implement runtime addition of pages

Stefan Berger (1):
  ibmvtpm: Add support for trusted boot using a vTPM 2.0

 docs/grub-dev.texi                    |   7 +-
 docs/grub.texi                        |   3 +-
 grub-core/Makefile.core.def           |  12 +
 grub-core/commands/ieee1275/ibmvtpm.c | 152 ++++++++++
 grub-core/commands/memtools.c         | 155 ++++++++++
 grub-core/kern/dl.c                   |  20 --
 grub-core/kern/efi/mm.c               |  83 +++---
 grub-core/kern/ieee1275/cmain.c       |   3 +
 grub-core/kern/ieee1275/init.c        | 410 +++++++++++++++++++++++++-
 grub-core/kern/mm.c                   | 178 +++++++----
 include/grub/dl.h                     |   1 -
 include/grub/ieee1275/ieee1275.h      |  11 +
 include/grub/mm.h                     |  16 +
 include/grub/mm_private.h             |  23 ++
 tests/util/grub-shell.in              |   6 +-
 15 files changed, 942 insertions(+), 138 deletions(-)
 create mode 100644 grub-core/commands/ieee1275/ibmvtpm.c
 create mode 100644 grub-core/commands/memtools.c

-- 
2.32.0



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

end of thread, other threads:[~2022-07-20 13:35 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-21  5:24 [PATCH v3 00/15] Dynamic allocation of memory regions and IBM vTPM v2 Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 01/15] grub-shell: only pass SeaBIOS fw_opt in for x86 BIOS platforms Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 02/15] mm: assert that we preserve header vs region alignment Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 03/15] mm: when adding a region, merge with region after as well as before Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 04/15] mm: debug support for region operations Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 05/15] mm: Drop unused unloading of modules on OOM Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 06/15] mm: Allow dynamically requesting additional memory regions Daniel Axtens
2022-04-21  6:50   ` Daniel Axtens
2022-04-21 13:32     ` Daniel Kiper
2022-04-21  5:24 ` [PATCH v3 07/15] efi: mm: Always request a fixed number of pages on init Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 08/15] efi: mm: Extract function to add memory regions Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 09/15] efi: mm: Pass up errors from `add_memory_regions ()` Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 10/15] efi: mm: Implement runtime addition of pages Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 11/15] ieee1275: request memory with ibm, client-architecture-support Daniel Axtens
2022-07-19 20:49   ` Stefan Berger
2022-07-20 13:34     ` Daniel Kiper
2022-04-21  5:24 ` [PATCH v3 12/15] ieee1275: drop len -= 1 quirk in heap_init Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 13/15] ieee1275: support runtime memory claiming Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 14/15] [RFC] Add memtool module with memory allocation stress-test Daniel Axtens
2022-04-21  5:24 ` [PATCH v3 15/15] ibmvtpm: Add support for trusted boot using a vTPM 2.0 Daniel Axtens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.