kho: rename "scratch" to "bootmem"
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 1 replyIn review
- v24 patches 0 repliesSuperseded
- v14 patches 5 repliesSuperseded
Changes in v3 from the cover letter
- Fixup some typos and update some leftover comments still referring to "scratch".
- Update early_init_dt_check_kho() to use bootmem instead of scratch.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | memblock: get rid of CONFIG_MEMBLOCK_KHO_SCRATCHinclude/ kernel/ mm/ +1 more | +3 | 0 replies | |
| 2/4 | memblock: rename KHO_SCRATCH to KHO_NOPRSRVarch/ arch/ drivers/ +3 more | +47 | 0 replies | |
| 3/4 | kho: rename KHO scratch to KHO bootmemDocumentation/ Documentation/ Documentation/ +18 more | +259 | 0 replies | |
| 4/4 | kho: rename kho_scratch= commandline parameter to kho_bootmem=Documentation/ Documentation/ kernel/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/4] kho: rename "scratch" to "bootmem"
From: "Pratyush Yadav (Google)" <[email protected]>
The term "KHO scratch" is vague and overloaded. It does not accurately describe what the memory is for. This was discussed previously at [0]. The conclusion was to rename "KHO scratch" to "KHO bootmem", since this is memory passed by the previous kernel for early boot allocations.
In addition, memblock does not care about the provenance of the memory. It cares more about how it should use it. Use MEMBLOCK_KHO_NOPRSRV, instead of MEMBLOCK_KHO_SCRATCH, to describe this memory to memblock.
This series does the renames. It also gets rid of a redundant Kconfig.
While the diffstat is big and scary, most of the changes are mechanical. The most interesting functional change is in patch 4.
This series touches a lot of files across a lot of trees. But since all of that is purely KHO-related code, I would like to collect ACKs from the maintainers and take it via the liveupdate tree.
Ideally we should queue it in liveupdate/next early in the v7.4 cycle since it will cause a lot of conflicts with other patches throughout the KHO tree.
[0] https://lore.kernel.org/kexec/[email protected]/T/#u
Changes in v3:
- Fixup some typos and update some leftover comments still referring to "scratch".
- Update early_init_dt_check_kho() to use bootmem instead of scratch.
Changes in v2:
- Rebase on latest liveupdate/next.
Pratyush Yadav (Google) (4):
memblock: get rid of CONFIG_MEMBLOCK_KHO_SCRATCH
memblock: rename KHO_SCRATCH to KHO_NOPRSRV
kho: rename KHO scratch to KHO bootmem
kho: rename kho_scratch= commandline parameter to kho_bootmem=
.../admin-guide/kernel-parameters.txt | 15 +- Documentation/admin-guide/mm/kho.rst | 18 +- Documentation/core-api/kho/index.rst | 36 +- arch/x86/boot/compressed/kaslr.c | 12 +- arch/x86/include/uapi/asm/setup_data.h | 4 +- arch/x86/kernel/e820.c | 11 +- arch/x86/kernel/kexec-bzimage64.c | 6 +- arch/x86/kernel/setup.c | 2 +- arch/x86/realmode/init.c | 2 +- drivers/firmware/efi/efi-init.c | 6 +- drivers/of/fdt.c | 8 +- drivers/of/kexec.c | 16 +- include/asm-generic/kexec_handover.h | 2 +- include/linux/kexec.h | 2 +- include/linux/kexec_handover.h | 16 +- include/linux/memblock.h | 30 +- kernel/kexec_file.c | 4 +- kernel/liveupdate/Kconfig | 1 - kernel/liveupdate/kexec_handover.c | 340 +++++++++--------- kernel/liveupdate/kexec_handover_debugfs.c | 24 +- kernel/liveupdate/kexec_handover_internal.h | 4 +- mm/Kconfig | 4 - mm/memblock.c | 56 +-- mm/memfd_luo.c | 3 +- mm/mm_init.c | 6 +- tools/testing/memblock/internal.h | 2 +- 26 files changed, 313 insertions(+), 317 deletions(-)
base-commit: db3db4c33a1cf89a201ad1a11c63f503b248ee32
Signature · 1 line
2.55.0.1082.g2b9226bbc0-goog