[PATCH 2/2] arm64/numa: Add NUMA emulation for ARM64

From: Tvrtko Ursulin
Date: Tue Jun 25 2024 - 08:58:41 EST


From: Maíra Canal <mcanal@xxxxxxxxxx>

Allow selecting NUMA emulation on arm64.

Signed-off-by: Maíra Canal <mcanal@xxxxxxxxxx>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxxx>
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Will Deacon <will@xxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: “Rafael J. Wysocki" <rafael@xxxxxxxxxx>
---
arch/arm64/Kconfig | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 8e80df015bdd..49c1cdc545d3 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -1507,6 +1507,16 @@ config NODES_SHIFT
Specify the maximum number of NUMA Nodes available on the target
system. Increases memory reserved to accommodate various tables.

+config NUMA_EMULATION
+ bool "NUMA emulation"
+ depends on NUMA
+ select GENERIC_ARCH_NUMA_EMULATION
+ help
+ Enable NUMA emulation support. A flat machine will be split into
+ virtual nodes when booted with "numa=fake=N", where N is the number
+ of nodes, the system RAM will be split into N equal chunks, and
+ assigned to each node.
+
source "kernel/Kconfig.hz"

config ARCH_SPARSEMEM_ENABLE
--
2.44.0