* [PATCH] Subject: x86: Move crashkernel reservation before dma32_reserve_bootmem()
@ 2008-08-25 12:58 Gregory Haskins
2008-08-26 8:38 ` Bernhard Walle
0 siblings, 1 reply; 2+ messages in thread
From: Gregory Haskins @ 2008-08-25 12:58 UTC (permalink / raw)
To: srostedt, mingo, tglx
Cc: linux-kernel, linux-rt-users, Bernhard Walle, Gregory Haskins
Hi Steven, Ingo, Thomas,
Bernard (cc'd) sent me this patch for 26.3-rt3 to fix an issue where a kdump
kernel will fail to load, thereby disabling the crashdump feature. Please
consider this patch for -rt4. IIUC, this patch is already upstream in the
.27 series.
-Greg
-----------------
From: Bernhard Walle <bernhard.walle@gmx.de>
On a x86-64 machine (nothing special I could encounter) I had the problem that
crashkernel reservation with the usual "64M@16M" failed. While debugging that,
I encountered that dma32_reserve_bootmem() reserves a memory region which is in
that area.
Because dma32_reserve_bootmem() does not rely on a specific offset but
crashkernel does, it makes sense to move the crashkernel reservation up a bit.
I tested that patch and it works without problems. I don't see any negative
effects of that move, but maybe I oversaw something ...
While the long-term solution is to make the crashkernel reservation dynamic
(which is already done in -tip), this bug should be fixed also short-term for
2.6.26 (or 2.6.26-stable if it's too short), and that's why I made that patch.
Signed-off-by: Bernhard Walle <bwalle@suse.de>
Signed-off-by: Gregory Haskins <ghaskins@novell.com>
---
arch/x86/kernel/setup_64.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c
index 6dff128..158cefe 100644
--- a/arch/x86/kernel/setup_64.c
+++ b/arch/x86/kernel/setup_64.c
@@ -444,6 +444,12 @@ void __init setup_arch(char **cmdline_p)
contig_initmem_init(0, end_pfn);
#endif
+ /*
+ * dma32_reserve_bootmem() allocates bootmem which may conflict
+ * with the crashkernel command line, so do that before
+ */
+ reserve_crashkernel();
+
dma32_reserve_bootmem();
#ifdef CONFIG_ACPI_SLEEP
@@ -484,7 +490,6 @@ void __init setup_arch(char **cmdline_p)
}
}
#endif
- reserve_crashkernel();
reserve_ibft_region();
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Subject: x86: Move crashkernel reservation before dma32_reserve_bootmem()
2008-08-25 12:58 [PATCH] Subject: x86: Move crashkernel reservation before dma32_reserve_bootmem() Gregory Haskins
@ 2008-08-26 8:38 ` Bernhard Walle
0 siblings, 0 replies; 2+ messages in thread
From: Bernhard Walle @ 2008-08-26 8:38 UTC (permalink / raw)
To: Gregory Haskins
Cc: srostedt, mingo, tglx, linux-kernel, linux-rt-users,
Gregory Haskins
* Gregory Haskins [2008-08-25 08:58]:
>
> Bernard (cc'd) sent me this patch for 26.3-rt3 to fix an issue where a kdump
> kernel will fail to load, thereby disabling the crashdump feature. Please
> consider this patch for -rt4. IIUC, this patch is already upstream in the
> .27 series.
commit 91467bdf6e53058af13fd255375d6634ba0c70e0
Author: Bernhard Walle <bwalle@suse.de>
Date: Fri Jul 18 19:07:53 2008 +0200
Bernhard
--
Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-26 8:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-25 12:58 [PATCH] Subject: x86: Move crashkernel reservation before dma32_reserve_bootmem() Gregory Haskins
2008-08-26 8:38 ` Bernhard Walle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).