arm64: Make section size configurable for hotplug

On arm64, currently section size is hard-coded to 1G.
Make this configurable if hotplug is enabled to support
more finer granularity for hotplug-able memory.

Change-Id: I5327ead37069176f4ba34657133fab303fb15b82
Signed-off-by: Arun KS <arunks@codeaurora.org>
This commit is contained in:
Arun KS 2018-03-19 15:04:03 +05:30
parent ef00227cce
commit 684b489a31
2 changed files with 14 additions and 0 deletions

View file

@ -203,6 +203,16 @@ config NEED_SG_DMA_LENGTH
config SMP
def_bool y
config HOTPLUG_SIZE_BITS
int "Memory hotplug block size(28 => 256MB 30 => 1GB)"
depends on SPARSEMEM
default 30
help
Selects granularity of hotplug memory. Block
size for memory hotplug is represent as a power
of 2.
If unsure, stick with default value.
config ARM64_DMA_USE_IOMMU
bool
select ARM_HAS_SG_CHAIN

View file

@ -18,7 +18,11 @@
#ifdef CONFIG_SPARSEMEM
#define MAX_PHYSMEM_BITS 48
#ifndef CONFIG_MEMORY_HOTPLUG
#define SECTION_SIZE_BITS 30
#else
#define SECTION_SIZE_BITS CONFIG_HOTPLUG_SIZE_BITS
#endif
#endif
#endif