Skip to content

Make whatever node kernel resides in un-hotpluggable.

Tang Chen linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2acpi, movablemem_map: Exclude memblock.reserved ranges when parsing SRAT.arch/x86/mm/srat.c+17 -110 replies
2/2acpi, movablemem_map: Make whatever nodes the kernel resides in un-hotpluggable.Documentation/kernel-parameters.txt arch/x86/mm/srat.c include/linux/mm.h+24 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Bug fix PATCH 0/2] Make whatever node kernel resides in un-hotpluggable.

As mentioned by HPA before, when we are using movablemem_map=acpi, if all the memory in SRAT is hotpluggable, then the kernel will have no memory to use, and will fail to boot.

Before parsing SRAT, memblock has already reserved some memory in memblock.reserve, which is used by the kernel, such as storing the kernel image. We are not able to prevent the kernel from using these memory. So, these 2 patches make the node which the kernel resides in un-hotpluggable.

patch1: Do not add the memory reserved by memblock into movablemenm_map.map[].
patch2: Do not add any other memory ranges in the same node into movablemenm_map.map[],
so that make the node which the kernel resides in un-hotpluggable.

Tang Chen (2):
acpi, movablemem_map: Exclude memblock.reserved ranges when parsing
SRAT.
acpi, movablemem_map: Make whatever nodes the kernel resides in
un-hotpluggable.

 Documentation/kernel-parameters.txt |    6 ++++++
 arch/x86/mm/srat.c                  |   35 ++++++++++++++++++++++++++++++++++-
 include/linux/mm.h                  |    1 +
 3 files changed, 41 insertions(+), 1 deletions(-)

--
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>