[PATCH 03/12] ARM: kexec: remove 512MB restriction on kexec crashdump
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
- Subject: [PATCH 03/12] ARM: kexec: remove 512MB restriction on kexec crashdump
- From: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>
- Date: Thu, 28 Apr 2016 10:27:59 +0100
- Cc: devicetree@xxxxxxxxxxxxxxx, Eric Biederman <ebiederm@xxxxxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Haren Myneni <hbabu@xxxxxxxxxx>, Ian Campbell <ijc+devicetree@xxxxxxxxxxxxxx>, Jonathan Corbet <corbet@xxxxxxx>, kexec@xxxxxxxxxxxxxxxxxxx, Kumar Gala <galak@xxxxxxxxxxxxxx>, linux-doc@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, Mark Rutland <mark.rutland@xxxxxxx>, Pawel Moll <pawel.moll@xxxxxxx>, Rob Herring <robh+dt@xxxxxxxxxx>, Santosh Shilimkar <ssantosh@xxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Vivek Goyal <vgoyal@xxxxxxxxxx>
- In-reply-to: <20160428092644.GX19428@n2100.arm.linux.org.uk>
- List-id: <linux-ia64.vger.kernel.org>
- References: <20160428092644.GX19428@n2100.arm.linux.org.uk>
Signed-off-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>
---
arch/arm/kernel/setup.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 77b54c461c52..d9317eec1eba 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -943,7 +943,6 @@ late_initcall(init_machine_late);
* zImage relocating below the reserved region.
*/
#define CRASH_ALIGN (128 << 20)
-#define CRASH_ADDR_MAX (PHYS_OFFSET + (512 << 20))
static inline unsigned long long get_total_mem(void)
{
@@ -973,9 +972,7 @@ static void __init reserve_crashkernel(void)
return;
if (crash_base <= 0) {
- unsigned long long crash_max = CRASH_ADDR_MAX;
- if (crash_max > (u32)~0)
- crash_max = (u32)~0;
+ unsigned long long crash_max = idmap_to_phys((u32)~0);
crash_base = memblock_find_in_range(CRASH_ALIGN, crash_max,
crash_size, CRASH_ALIGN);
if (!crash_base) {
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]