All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] - Memoryless nodes
@ 2009-04-17 14:22 Jack Steiner
  2009-04-17 14:49 ` [tip:x86/urgent] x86/uv: fix init of memory-less nodes tip-bot for Jack Steiner
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jack Steiner @ 2009-04-17 14:22 UTC (permalink / raw)
  To: mingo, tglx; +Cc: linux-kernel

Add support for nodes that have cpus but no memory.
The current code was failing to add these nodes
to the nodes_present_map.

Signed-off-by: Jack Steiner <steiner@sgi.com>

---
 arch/x86/kernel/tlb_uv.c |   12 +++++++++++-
 arch/x86/mm/srat_64.c    |    5 ++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

Index: linux/arch/x86/mm/srat_64.c
===================================================================
--- linux.orig/arch/x86/mm/srat_64.c	2009-04-12 10:38:26.000000000 -0500
+++ linux/arch/x86/mm/srat_64.c	2009-04-12 10:38:47.000000000 -0500
@@ -28,6 +28,7 @@ int acpi_numa __initdata;
 static struct acpi_table_slit *acpi_slit;
 
 static nodemask_t nodes_parsed __initdata;
+static nodemask_t cpu_nodes_parsed __initdata;
 static struct bootnode nodes[MAX_NUMNODES] __initdata;
 static struct bootnode nodes_add[MAX_NUMNODES];
 static int found_add_area __initdata;
@@ -174,6 +175,7 @@ acpi_numa_processor_affinity_init(struct
 	else
 		apic_id = pa->apic_id;
 	apicid_to_node[apic_id] = node;
+	node_set(node, cpu_nodes_parsed);
 	acpi_numa = 1;
 	printk(KERN_INFO "SRAT: PXM %u -> APIC %u -> Node %u\n",
 	       pxm, apic_id, node);
@@ -402,7 +404,8 @@ int __init acpi_scan_nodes(unsigned long
 		return -1;
 	}
 
-	node_possible_map = nodes_parsed;
+	/* Account for nodes with cpus and no memory */
+	nodes_or(node_possible_map, nodes_parsed, cpu_nodes_parsed);
 
 	/* Finally register nodes */
 	for_each_node_mask(i, node_possible_map)

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

end of thread, other threads:[~2009-04-20 13:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-17 14:22 [PATCH] - Memoryless nodes Jack Steiner
2009-04-17 14:49 ` [tip:x86/urgent] x86/uv: fix init of memory-less nodes tip-bot for Jack Steiner
2009-04-17 18:31   ` David Rientjes
2009-04-17 20:28     ` Jack Steiner
2009-04-17 20:45 ` tip-bot for Jack Steiner
2009-04-18  9:00 ` [PATCH] - Memoryless nodes Andi Kleen
2009-04-20 13:10   ` Jack Steiner

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.