+ x86_64-configurable-fake-numa-node-sizes-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     x86_64: remove SRAT active ranges for fake numa
has been added to the -mm tree.  Its filename is
     x86_64-configurable-fake-numa-node-sizes-fix.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: x86_64: remove SRAT active ranges for fake numa
From: David Rientjes <rientjes@xxxxxxxxxx>

Make sure we do not have any current active ranges (most notably from SRAT)
registered when we are setting up NUMA emulation.  Otherwise, we'll lose
the new fake node ID's if the smaller emulated nodes map onto existing
registered active ranges with physical node ID's.

Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxxx>
Cc: Paul Jackson <pj@xxxxxxx>
Cc: Christoph Lameter <clameter@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 arch/x86_64/mm/k8topology.c |    7 ++++---
 arch/x86_64/mm/numa.c       |    6 ++++++
 2 files changed, 10 insertions(+), 3 deletions(-)

diff -puN arch/x86_64/mm/k8topology.c~x86_64-configurable-fake-numa-node-sizes-fix arch/x86_64/mm/k8topology.c
--- a/arch/x86_64/mm/k8topology.c~x86_64-configurable-fake-numa-node-sizes-fix
+++ a/arch/x86_64/mm/k8topology.c
@@ -149,9 +149,10 @@ int __init k8_scan_nodes(unsigned long s
 		
 		nodes[nodeid].start = base; 
 		nodes[nodeid].end = limit;
-		e820_register_active_regions(nodeid,
-				nodes[nodeid].start >> PAGE_SHIFT,
-				nodes[nodeid].end >> PAGE_SHIFT);
+		if (!fake)
+			e820_register_active_regions(nodeid,
+					nodes[nodeid].start >> PAGE_SHIFT,
+					nodes[nodeid].end >> PAGE_SHIFT);
 
 		prevbase = base;
 
diff -puN arch/x86_64/mm/numa.c~x86_64-configurable-fake-numa-node-sizes-fix arch/x86_64/mm/numa.c
--- a/arch/x86_64/mm/numa.c~x86_64-configurable-fake-numa-node-sizes-fix
+++ a/arch/x86_64/mm/numa.c
@@ -432,6 +432,12 @@ out:
 		       "disabled.\n");
 		return -1;
 	}
+
+	/*
+	 * We need to vacate all active ranges that may have been registered by
+	 * SRAT.
+	 */
+	remove_all_active_ranges();
 	for_each_online_node(i) {
 		e820_register_active_regions(i, nodes[i].start >> PAGE_SHIFT,
 						nodes[i].end >> PAGE_SHIFT);
_

Patches currently in -mm which might be from rientjes@xxxxxxxxxx are

x86_64-configurable-fake-numa-node-sizes.patch
x86_64-configurable-fake-numa-node-sizes-fix.patch
x86_64-split-remaining-fake-nodes-equally.patch
x86_64-fixed-size-remaining-fake-nodes.patch
x86_64-map-fake-nodes-to-real-nodes.patch
x86_64-disable-alien-cache-for-fake-numa.patch
x86_64-export-physnode-mapping-to-userspace.patch
x86_64-fake-numa-for-cpusets-document.patch
x86_p4_clockmod-must-select-cpu_freq_table.patch
smaps-extract-pmd-walker-from-smaps-code.patch
smaps-add-pages-referenced-count-to-smaps.patch
smaps-add-clear_refs-file-to-clear-reference.patch
smaps-add-clear_refs-file-to-clear-reference-fix.patch
smaps-add-clear_refs-file-to-clear-reference-fix-fix.patch
smaps-add-clear_refs-file-to-clear-reference-docs.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux