[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1401266668-34365-1-git-send-email-wangnan0@huawei.com>
Date: Wed, 28 May 2014 16:44:28 +0800
From: Wang Nan <wangnan0@...wei.com>
To: Russell King <linux@....linux.org.uk>,
Simon Horman <horms@...ge.net.au>,
Will Deacon <will.deacon@....com>
CC: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <kexec@...ts.infradead.org>,
Geng Hui <hui.geng@...wei.com>, Wang Nan <wangnan0@...wei.com>
Subject: [PATCH RESEND] ARM: kdump: 2nd kernel should use strict pfn_valid in SPARSEMEM platform
This patch removes an irrational limitation for crash dump kernel on ARM
platform with SPARSEMEM enabled.
Without this patch, crash reservation area for a crash dump kernel with
SPARSEMEM selected must occupy a full section plus 1MiB. If not,
elfcorehdr and some memory space used by the first kernel will unable to
get accessed. This is caused by pfn_valid: fast pfn_valid ragards any
pfn in a valid section as valid and prevents it to be ioremapped.
This limitation wastes memory, because sections are always large and
crash dump kernel should be as small as possible.
This patch selects HAVE_ARCH_PFN_VALID for CRASH_DUMP, makes crash dump
kernel to use strict version of pfn_valid().
Signed-off-by: Wang Nan <wangnan0@...wei.com>
---
This is the third time I post this patch. The previous records can be
retrived from:
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-May/256498.html
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-May/257472.html
Different from previous version, this patch select HAVE_ARCH_PFN_VALID
right after CRASH_DUMP config entry.
---
arch/arm/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index c57ddcb..d5ffbb1 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -2160,6 +2160,7 @@ config ATAGS_PROC
config CRASH_DUMP
bool "Build kdump crash kernel (EXPERIMENTAL)"
+ select HAVE_ARCH_PFN_VALID if SPARSEMEM
help
Generate crash dump after being started by kexec. This should
be normally only set in special crash dump kernels which are
--
1.8.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists