+ x86_64-memory-hot-add-arch_find_node-x86_64.patch added to -mm tree

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

 



The patch titled

     x86_64 memory hot-add: arch_find_node x86_64

has been added to the -mm tree.  Its filename is

     x86_64-memory-hot-add-arch_find_node-x86_64.patch

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 memory hot-add: arch_find_node x86_64
From: keith mannthey <kmannth@xxxxxxxxxx>

This is a enablement of the generic arch_find_node for x86_64.  It uses the
nodes_add date collected from the SRAT to do it's lookup.

I suspect and i386 version will be needed when I get to that arch with my
work.

Signed-off-by: Keith Mannthey <kmannth@xxxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/x86_64/Kconfig   |    4 ++++
 arch/x86_64/mm/srat.c |   12 ++++++++++++
 2 files changed, 16 insertions(+)

diff -puN arch/x86_64/Kconfig~x86_64-memory-hot-add-arch_find_node-x86_64 arch/x86_64/Kconfig
--- a/arch/x86_64/Kconfig~x86_64-memory-hot-add-arch_find_node-x86_64
+++ a/arch/x86_64/Kconfig
@@ -343,6 +343,10 @@ config ARCH_MEMORY_PROBE
 	def_bool y
 	depends on MEMORY_HOTPLUG
 
+config ARCH_FIND_NODE
+	def_bool y
+	depends on MEMORY_HOTPLUG
+
 config ARCH_FLATMEM_ENABLE
 	def_bool y
 	depends on !NUMA
diff -puN arch/x86_64/mm/srat.c~x86_64-memory-hot-add-arch_find_node-x86_64 arch/x86_64/mm/srat.c
--- a/arch/x86_64/mm/srat.c~x86_64-memory-hot-add-arch_find_node-x86_64
+++ a/arch/x86_64/mm/srat.c
@@ -459,3 +459,15 @@ int __node_distance(int a, int b)
 }
 
 EXPORT_SYMBOL(__node_distance);
+
+int arch_find_node(unsigned long start, unsigned long size)
+{
+	int i, ret = 0;
+	unsigned long end = start+size;
+
+	for_each_node(i) {
+		if (nodes_add[i].start <= start && nodes_add[i].end >= end)
+			ret = i;
+	}
+	return ret;
+}
_

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

x86_64-memory-hot-add-nodes_add-cleanup.patch
x86_64-memory-hot-add-create-arch_find_node.patch
x86_64-memory-hot-add-arch_find_node-x86_64.patch
x86_64-memory-hot-add-fix-kernel-mapping-code.patch
x86_64-memory-hot-add-fix-acpi-motherboardc.patch
convert-i386-numa-kva-space-to-bootmem.patch
convert-i386-numa-kva-space-to-bootmem-tidy.patch
convert-i386-summit-subarch-to-use-srat-info-for-apicid_to_node-calls.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