]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[POWERPC] kdump: Support kernels having 64k page size.
authorSachin P. Sant <sachinp@in.ibm.com>
Fri, 8 Sep 2006 02:29:52 +0000 (07:59 +0530)
committerPaul Mackerras <paulus@samba.org>
Wed, 13 Sep 2006 08:30:04 +0000 (18:30 +1000)
This is required to generate proper core files using kdump on ppc64.

Create a backup region of 64K size irrespective of the PAGE SIZE.
At present 32K was used as backup size. In the case of 64K page size,
second PT_LOAD segments starts at 32K and the first one is not page
aligned.  __ioremap() (crash_dump.c) fails if pfn = 0 which is the
case for the second PT_LOAD segment. This is not an issue for 4K page
size because the the first page (32K backup) is copied to second
kernel memory and thus referencing with the second kernel pfn.

Signed-off-by: Sachin Sant <sachinp@in.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/kdump.h

index dc1574c945f8fb8a605413aa8b5b384ef2bba19a..10e8eb1e6f4f67e9ec9d1577927980481659926d 100644 (file)
@@ -7,7 +7,7 @@
 /* How many bytes to reserve at zero for kdump. The reserve limit should
  * be greater or equal to the trampoline's end address.
  * Reserve to the end of the FWNMI area, see head_64.S */
-#define KDUMP_RESERVE_LIMIT    0x8000
+#define KDUMP_RESERVE_LIMIT    0x10000 /* 64K */
 
 #ifdef CONFIG_CRASH_DUMP