Skip to content

x86/setup: consolidate early memory reservations

Mike Rapoport linux-mm lkml 3 versions – Applied

Status from this message: The following commit has been merged into the x86/boot branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesApplied
  2. v22 patches 1 replySuperseded
  3. v12 patches 10 repliesSuperseded

Changes in v3 from the cover letter

* rebase on v5.12-rc1

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2x86/setup: consolidate early memory reservationsarch/x86/kernel/setup.c+44 -483 replies
2/2x86/setup: merge several reservations of start of the memoryarch/x86/kernel/setup.c+10 -90 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBorislav PetkovDavid HildenbrandBaoquan He
SeriesA-b
1/2A-b R-b
2/2A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] x86/setup: consolidate early memory reservations

From: Mike Rapoport <[email protected]>

Hi,

David noticed that we do some of memblock_reserve() calls after allocations are possible:

https://lore.kernel.org/lkml/[email protected]

The below patches consolidate early memory reservations done during setup_arch() so that memory used by firmware, bootloader, kernel text/data and the memory that should be excluded from the available memory for whatever other reason is reserved before memblock allocations are possible.

The patches are rebased on v5.12-rc1 and I think x86 tree is the best way to merge them.

v3:
* rebase on v5.12-rc1

v2: https://lore.kernel.org/lkml/[email protected]
* get rid of trim_platform_memory_ranges() and call trim_snb_memory() directly, per Boris comments
* massage changelog and comments to use passive voice, per Boris
* add Acked-by and Reviewed-by, thanks Boris and David

v1: https://lore.kernel.org/lkml/[email protected]

Mike Rapoport (2):
x86/setup: consolidate early memory reservations x86/setup: merge several reservations of start of the memory

 arch/x86/kernel/setup.c | 95 ++++++++++++++++++++---------------------
 1 file changed, 46 insertions(+), 49 deletions(-)
Signature · 1 line
2.28.0