Skip to contentSkip to conversation

x86-32, NUMA: Fix ACPI NUMA init broken by recent x86-64 change

PATCH In review Tejun Heo 1 participant 2 messages Apr 4, 2011

Subsystems (2)
lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 x86-32, NUMA: Fix ACPI NUMA init broken by recent x86-64 change

Commit d8fc3afc49 (x86, NUMA: Move *_numa_init() invocations into initmem_init()) moved acpi_numa_init() call into NUMA initmem_init() but forgot to update 32bit NUMA init breking ACPI NUMA configuration for 32bit.

acpi_numa_init() call was later moved again to srat_64.c. Match it by adding the call to get_memcfg_from_srat() in srat_32.c.

Cc Ingo Molnar <[email protected]>
Cc Yinghai Lu <[email protected]>
Cc Cyrill Gorcunov <[email protected]>
Cc David Rientjes <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Thomas Gleixner <[email protected]>
---
 arch/x86/mm/srat_32.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/x86/mm/srat_32.c +3 -1
Index: work/arch/x86/mm/srat_32.c
===================================================================
@@ -211,10 +211,12 @@ int __init get_memcfg_from_srat(void)
 {
 	int i, j, nid;
 
-
 	if (srat_disabled())
 		goto out_fail;
 
+	if (acpi_numa_init() < 0)
+		goto out_fail;
+
 	if (num_memory_chunks == 0) {
 		printk(KERN_DEBUG
 			 "could not find any ACPI SRAT memory areas.\n");
#1 lore raw
Commit-ID:  765af22da8a61bd44d354b3c3be955c332325b2f
Gitweb:     http://git.kernel.org/tip/765af22da8a61bd44d354b3c3be955c332325b2f
Author:     Tejun Heo <[email protected]>
AuthorDate: Mon, 4 Apr 2011 03:06:45 -0700
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 4 Apr 2011 16:56:33 +0200

x86-32, NUMA: Fix ACPI NUMA init broken by recent x86-64 change

Commit d8fc3afc49 (x86, NUMA: Move *_numa_init() invocations into initmem_init()) moved acpi_numa_init() call into NUMA initmem_init() but forgot to update 32bit NUMA init breaking ACPI NUMA configuration for 32bit.

acpi_numa_init() call was later moved again to srat_64.c. Match it by adding the call to get_memcfg_from_srat() in srat_32.c.

Cc Yinghai Lu <[email protected]>
Cc Cyrill Gorcunov <[email protected]>
Cc David Rientjes <[email protected]>
Cc H. Peter Anvin <[email protected]>

LKML-Reference: <[email protected]>

---
 arch/x86/mm/srat_32.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/x86/mm/srat_32.c +3 -1
index 48651c6..364f36b 100644
@@ -211,10 +211,12 @@ int __init get_memcfg_from_srat(void)
 {
 	int i, j, nid;
 
-
 	if (srat_disabled())
 		goto out_fail;
 
+	if (acpi_numa_init() < 0)
+		goto out_fail;
+
 	if (num_memory_chunks == 0) {
 		printk(KERN_DEBUG
 			 "could not find any ACPI SRAT memory areas.\n");