[PATCH 2/4] sh: set node_possible_map in do_init_bootmem()
From: Sang-Heon Jeon
Date: Wed Jul 01 2026 - 13:28:40 EST
Unlike other NUMA architectures, sh never sets node_possible_map.
do_init_bootmem() marks node 0 online and plat_mem_setup() marks the
rest online, after which node_online_map does not change, so set
node_possible_map from node_online_map.
Signed-off-by: Sang-Heon Jeon <ekffu200098@xxxxxxxxx>
---
arch/sh/mm/init.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index 110308bdef01..13954d7bbdae 100644
--- a/arch/sh/mm/init.c
+++ b/arch/sh/mm/init.c
@@ -227,6 +227,8 @@ static void __init do_init_bootmem(void)
node_set_online(0);
plat_mem_setup();
+
+ node_possible_map = node_online_map;
}
static void __init early_reserve_mem(void)
--
2.43.0