All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch_numa: fix broken NUMA emulation with dummy_numa_init()
@ 2026-11-14 13:26 Sang-Heon Jeon
  2026-11-22  8:50 ` + arch_numa-fix-broken-numa-emulation-with-dummy_numa_init.patch added to mm-unstable branch Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Sang-Heon Jeon @ 2026-11-14 13:26 UTC (permalink / raw)
  To: Andrew Morton, Mike Rapoport; +Cc: Bruno Faccini, linux-mm

If arch_numa_init() falls back to dummy_numa_init(), numa_off is set
to true before numa_emulation() runs. Then numa_emulation() calls
fix_pxm_node_maps(), which fails when CONFIG_ACPI_NUMA is enabled and
numa_off is true, so numa=fake is ignored in that case.

So set numa_off in arch_numa_init() after numa_emulation() runs
instead.

Fixes: 63db8170bf34 ("mm/fake-numa: allow later numa node hotplug")
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
 mm/arch_numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/arch_numa.c b/mm/arch_numa.c
index 940e6d5f0023..5742ca7d98be 100644
--- a/mm/arch_numa.c
+++ b/mm/arch_numa.c
@@ -265,7 +265,6 @@ static int __init dummy_numa_init(void)
 		return ret;
 	}
 
-	numa_off = true;
 	return 0;
 }
 
@@ -305,6 +304,7 @@ void __init arch_numa_init(void)
 	}
 
 	numa_init(dummy_numa_init);
+	numa_off = true;
 }
 
 #ifdef CONFIG_NUMA_EMU

base-commit: d9a27fa1050902a6e38bdb780b0277cbf1dfa5a5
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-22  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-14 13:26 [PATCH] arch_numa: fix broken NUMA emulation with dummy_numa_init() Sang-Heon Jeon
2026-11-22  8:50 ` + arch_numa-fix-broken-numa-emulation-with-dummy_numa_init.patch added to mm-unstable branch Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.