Skip to contentSkip to conversation

x86-acpi-crash-kdump-do-reserve_crashkernel-after-srat-is-parsed.patch removed from -mm tree

to-be-updated [email protected] 1 participant 1 message Oct 3, 2013 x86

lore
Share & tools
lore
#0 lore raw

Subject: [to-be-updated] x86-acpi-crash-kdump-do-reserve_crashkernel-after-srat-is-parsed.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 03 Oct 2013 11:59:22 -0700

The patch titled
Subject: x86, acpi, crash, kdump: do reserve_crashkernel() after SRAT is parsed
has been removed from the -mm tree. Its filename was
x86-acpi-crash-kdump-do-reserve_crashkernel-after-srat-is-parsed.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
From: Tang Chen <[email protected]>
Subject: x86, acpi, crash, kdump: do reserve_crashkernel() after SRAT is parsed

Memory reserved for crashkernel could be large. So we should not allocate this memory bottom up from the end of kernel image.

When SRAT is parsed, we will be able to know which memory is hotpluggable, and we can avoid allocating this memory for the kernel. So reorder reserve_crashkernel() after SRAT is parsed.

Cc "H. Peter Anvin" <[email protected]>
Cc "Rafael J . Wysocki" <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jiang Liu <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Kamezawa Hiroyuki <[email protected]>
Cc Lai Jiangshan <[email protected]>
Cc Len Brown <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Michal Nazarewicz <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Taku Izumi <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Thomas Renninger <[email protected]>
Cc Toshi Kani <[email protected]>
Cc Wanpeng Li <[email protected]>
Cc Wen Congyang <[email protected]>
Cc Yasuaki Ishimatsu <[email protected]>
Cc Yinghai Lu <[email protected]>

---

 arch/x86/kernel/setup.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
arch/x86/kernel/setup.c renamed from arch/x86/kernel/setup.c~x86-acpi-crash-kdump-do-reserve_crashkernel-after-srat-is-parsed +6 -2
diff -puN arch/x86/kernel/setup.c~x86-acpi-crash-kdump-do-reserve_crashkernel-after-srat-is-parsed arch/x86/kernel/setup.c
@@ -1120,8 +1120,6 @@ void __init setup_arch(char **cmdline_p)
 	acpi_initrd_override((void *)initrd_start, initrd_end - initrd_start);
 #endif
 
-	reserve_crashkernel();
-
 	vsmp_init();
 
 	io_delay_init();
@@ -1136,6 +1134,12 @@ void __init setup_arch(char **cmdline_p)
 	initmem_init();
 	memblock_find_dma_reserve();
 
+	/*
+	 * Reserve memory for crash kernel after SRAT is parsed so that it
+	 * won't consume hotpluggable memory.
+	 */
+	reserve_crashkernel();
+
 #ifdef CONFIG_KVM_GUEST
 	kvmclock_init();
 #endif

_

Patches currently in -mm which might be from [email protected] are

mem-hotplug-introduce-movablenode-boot-option.patch mem-hotplug-introduce-movablenode-boot-option-fix.patch memblock-factor-out-of-top-down-allocation-hack.patch linux-next.patch x86-mm-factor-out-of-top-down-direct-mapping-setup-next-fix.patch