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

* + arch_numa-fix-broken-numa-emulation-with-dummy_numa_init.patch added to mm-unstable branch
  2026-11-14 13:26 [PATCH] arch_numa: fix broken NUMA emulation with dummy_numa_init() Sang-Heon Jeon
@ 2026-11-22  8:50 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2026-11-22  8:50 UTC (permalink / raw)
  To: mm-commits, rppt, bfaccini, ekffu200098, akpm


The patch titled
     Subject: arch_numa: fix broken NUMA emulation with dummy_numa_init()
has been added to the -mm mm-unstable branch.  Its filename is
     arch_numa-fix-broken-numa-emulation-with-dummy_numa_init.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/arch_numa-fix-broken-numa-emulation-with-dummy_numa_init.patch

This patch will later appear in the mm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: Sang-Heon Jeon <ekffu200098@gmail.com>
Subject: arch_numa: fix broken NUMA emulation with dummy_numa_init()
Date: Sat, 14 Nov 2026 22:26:24 +0900

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.

Link: https://patch.msgid.link/20261114132625.1710476-1-ekffu200098@gmail.com
Fixes: 63db8170bf34 ("mm/fake-numa: allow later numa node hotplug")
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Bruno Faccini <bfaccini@nvidia.com>

 mm/arch_numa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/arch_numa.c~arch_numa-fix-broken-numa-emulation-with-dummy_numa_init
+++ a/mm/arch_numa.c
@@ -289,7 +289,6 @@ static int __init dummy_numa_init(void)
 		return ret;
 	}
 
-	numa_off = true;
 	return 0;
 }
 
@@ -329,6 +328,7 @@ void __init arch_numa_init(void)
 	}
 
 	numa_init(dummy_numa_init);
+	numa_off = true;
 }
 
 #ifdef CONFIG_NUMA_EMU
_

Patches currently in -mm which might be from ekffu200098@gmail.com are

arch_numa-fix-broken-numa-emulation-with-dummy_numa_init.patch
fault-inject-use-a-shared-initialization-helper-for-the-random-state.patch
fault-inject-fix-wrong-unit-of-verbose_ratelimit_interval_ms.patch
fault-injection-fix-typo-in-failcmdsh.patch


^ permalink raw reply	[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.