Skip to content

mm: only mark/clear KHO scratch memory when needed

Usama Arif linux-mm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesIn review
  2. v22 patches 7 repliesSuperseded
  3. v11 patch 4 repliesSuperseded

Changes in v3 from the cover letter

- is_kho_boot already has stubs when CONFIG_KEXEC_HANDOVER=n, no need to move the functions under CONFIG_KEXEC_HANDOVER (Pratyush Yadav)
- Commit messsage improvements

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/memblock: remove CONFIG_MEMBLOCK_KHO_SCRATCH optioninclude/linux/memblock.h kernel/Kconfig.kexec mm/Kconfig +1 more+3 -80 replies
2/2mm/memblock: only mark/clear KHO scratch memory when neededmm/memblock.c+9 -56 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPratyush YadavKiryl Shutsemau
1/2R-b R-b
2/2R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] mm: only mark/clear KHO scratch memory when needed

The scratch memory for kexec handover is used to bootstrap the kexec'ed kernel. Only the 1st 1MB is used as scratch, and its a hack to get around limitations with KHO. It is only needed when CONFIG_KEXEC_HANDOVER is enabled and only if it is a KHO boot (both checked by is_kho_boot). Add check to prevent marking a KHO scratch region unless needed.

CONFIG_MEMBLOCK_KHO_SCRATCH is also removed as its only selected by KEXEC_HANDOVER.

v2 -> v3:
- is_kho_boot already has stubs when CONFIG_KEXEC_HANDOVER=n, no need to move the functions under CONFIG_KEXEC_HANDOVER (Pratyush Yadav)
- Commit messsage improvements

v1 -> v2:
- Remove CONFIG_MEMBLOCK_KHO_SCRATCH (Kiryl Shutsemau)
- Move memblock_mark/clear_kho_scratch under alread existing CONFIG_KEXEC_HANDOVER in memblock.c.

Usama Arif (2):
mm/memblock: remove CONFIG_MEMBLOCK_KHO_SCRATCH option mm/memblock: only mark/clear KHO scratch memory when needed

 include/linux/memblock.h |  2 +-
 kernel/Kconfig.kexec     |  1 -
 mm/Kconfig               |  4 ----
 mm/memblock.c            | 18 +++++++++++-------
 4 files changed, 12 insertions(+), 13 deletions(-)
Signature · 1 line
2.47.3