Skip to content

arm64: make section size configurable for memory hotplug

Sudarshan Rajagopalan linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1arm64: make section size configurable for memory hotplugarch/arm64/Kconfig arch/arm64/include/asm/sparsemem.h+15 -09 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/1] arm64: make section size configurable for memory hotplug

The section size defines the granularity of memory hotplug. This is currently hard coded to 1GB on arm64 linux, which defines that the least size of memblock that can be hotplugged out is 1GB. Some DDR configurations (especially low RAM and dual-rank DDRs) may have section sizes that are less than 1GB (ex. 512MB, 256MB etc.). Having an option to reduce the memblock size to section size or lower gives more granularity of memory hotplug. For example, a system with DDR section size of 512MB and kernel memblock size of 1GB, we would have to remove two segments of DDR sections in order to hotplug out atleast 1 memblock from kernel POV.

Section sizes of DDRs vary based on specs (number of ranks, channels, regions etc.) Making this section size configurable helps users to assign based on the DDR being used. The default is set to 1GB which is the current memblock size.

Sudarshan Rajagopalan (1):
arm64: Make section size configurable for memory hotplug

 arch/arm64/Kconfig                 | 11 +++++++++++
 arch/arm64/include/asm/sparsemem.h |  4 ++++
 2 files changed, 15 insertions(+)
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project