add x86-64 support for memory hot-add
PATCH 2/2 add x86-64 support for memory hot-add
Add x86-64 specific memory hot-add functions, Kconfig options, and runtime kernel page table update functions to make hot-add usable on x86-64 machines. Also, fixup the nefarious conditional locking and exports pointed out by Andi.
Tested on Intel and IBM x86-64 memory hot-add capable systems.
---
arch/x86_64/Kconfig +6 -1
@@ -283,7 +283,11 @@ config ARCH_DISCONTIGMEM_DEFAULT config ARCH_SPARSEMEM_ENABLE def_bool y - depends on NUMA + depends on (NUMA || EXPERIMENTAL) + +config ARCH_MEMORY_PROBE + def_bool y + depends on MEMORY_HOTPLUG config ARCH_FLATMEM_ENABLE def_bool y
@@ -293,6 +297,7 @@ source "mm/Kconfig" config HAVE_ARCH_EARLY_PFN_TO_NID def_bool y + depends on NUMA config NR_CPUS int "Maximum number of CPUs (2-256)"
arch/x86_64/mm/init.c +128 -32
253 lines not on this page · raw message
Quoted 4 lines · Matt Tolentino
Add x86-64 specific memory hot-add functions,
Kconfigoptions, and runtime kernel page table update functions to make hot-add usable on x86-64 machines. Also, fixup the nefarious conditional locking and exports pointed out by Andi.
I'm trying to stabilize my tree for the 2.6.16 submission right now and this one comes a bit too late and is a bit too involved to slip through - sorry. I will consider it after Linus has merged the whole batch of changes for 2.6.16 - so hopefully in 2.6.17.
Quoted 3 lines
+/*
+ * Memory hotplug specific functions
+ * These are only for non-NUMA machines right now.
How much work would it be to allow it for NUMA kernels too?
-Andi
for Opteron NUMA, need to update
0. stop the DCT on the node that will plug the new DIMM
1. read spd_rom for the added dimm
2. init the ram size and update the memory routing table...
3. init the timing...
4. update relate info in TOM and TOM2, and MTRR, and e820
It looks like we need to get some code about ram init from LinuxBIOS.....
YH
Quoted 8 lines · Yinghai Lu
for Opteron NUMA, need to update
0. stop the DCT on the node that will plug the new DIMM
1. readspd_romfor the added dimm
2. init the ram size and update the memory routing table...
3. init the timing...
4. update relate info in TOM and TOM2, and MTRR, and e820It looks like we need to get some code about ram init from LinuxBIOS.....
Is the AMD box not going to use the ACPI add-memory mechanism?
Signature · 1 line
keith <[email protected]>