Skip to content

mm: Add generic copy from early unmapped RAM

Mark Salter linux-arch linux-arm-kernel linux-mm lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 7 repliesIn review
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches5 repliesSuperseded

Changes in v4 from the cover letter

* Fixed arm64 build error with !CONFIG_BLK_DEV_INITRD case

* Fixed nonsensical comment in arm64 relocate_initrd()

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: add utility for early copy from unmapped raminclude/asm-generic/early_ioremap.h mm/early_ioremap.c+28 -00 replies
2/3arm64: support initrd outside kernel linear maparch/arm64/kernel/setup.c+62 -07 replies
3/3x86: use generic early mem copyarch/x86/kernel/setup.c+1 -210 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchWill Deacon
1/3
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH V4 0/3] mm: Add generic copy from early unmapped RAM

When booting an arm64 kernel w/initrd using UEFI/grub, use of mem= will likely cut off part or all of the initrd. This leaves it outside the kernel linear map which leads to failure when unpacking. The x86 code has a similar need to relocate an initrd outside of mapped memory in some cases.

The current x86 code uses early_memremap() to copy the original initrd from unmapped to mapped RAM. This patchset creates a generic copy_from_early_mem() utility based on that x86 code and has arm64 and x86 share it in their respective initrd relocation code.

Changes from V3:

* Fixed arm64 build error with !CONFIG_BLK_DEV_INITRD case

* Fixed nonsensical comment in arm64 relocate_initrd()

Changes from V2:

* Fixed sparse warning in copy_from_early_mem()

* Removed unneeded MAX_MAP_CHUNK from x86 setup.c

* Moved #ifdef outside arm64 relocate_initrd() definition.

Changes from V1:

* Change cover letter subject to highlight the added generic code

* Add patch for x86 to use common copy_from_early_mem()

Mark Salter (3):
mm: add utility for early copy from unmapped ram
arm64: support initrd outside kernel linear map
x86: use generic early mem copy

 arch/arm64/kernel/setup.c           | 62 +++++++++++++++++++++++++++++++++++++
 arch/x86/kernel/setup.c             | 22 +------------
 include/asm-generic/early_ioremap.h |  6 ++++
 mm/early_ioremap.c                  | 22 +++++++++++++
 4 files changed, 91 insertions(+), 21 deletions(-)
Signature · 7 lines
2.4.3

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>