User: Password:
|
|
Subscribe / Log in / New account

Initial implementation of kdump for ARM

From:  Mika Westerberg <ext-mika.1.westerberg@nokia.com>
To:  linux-arm-kernel@lists.infradead.org
Subject:  [PATCH 0/8] Initial implementation of kdump for ARM
Date:  Tue, 20 Apr 2010 11:50:46 +0300
Archive-link:  Article, Thread

Hello,

This is revised series of kdump code, now without "RFC"-prefix. Original
series can be found here:

http://lists.infradead.org/pipermail/linux-arm-kernel/201...

Changes to previous version:
	- crash_setup_regs() uses Russell's suggestion for saving registers
	- copy_oldmem_page() code is changed to use ioremap()
	- there is no need for special 'mem=' parameters

I've been testing this on my N900.

I have patches for kexec-tools ready and send them once this kernel part is
accepted.

As a sidenote: I got crashkernel booting correctly just by modifying PHYS_OFFSET
and mach/Makefile.boot for my platform. So it is enough just to pass 'mem=size'
to dump capture kernel. This is documented in Kconfig CONFIG_CRASH_DUMP.

Regards,
MW

Mika Westerberg (8):
  arm: kdump: reserve memory for crashkernel
  arm: kdump: implement crash_setup_regs()
  arm: kdump: implement machine_crash_shutdown()
  arm: kdump: skip indirection page when crashing
  arm: kdump: implement copy_oldmem_page()
  arm: allow passing an ELF64 header to elf_check_arch()
  arm: kdump: add support for elfcorehdr= parameter
  arm: kdump: add CONFIG_CRASH_DUMP Kconfig option

 arch/arm/Kconfig                  |   12 ++++++
 arch/arm/include/asm/elf.h        |    4 +-
 arch/arm/include/asm/kexec.h      |   22 +++++++++-
 arch/arm/kernel/Makefile          |    1 +
 arch/arm/kernel/crash_dump.c      |   58 ++++++++++++++++++++++++++++
 arch/arm/kernel/elf.c             |    6 ++-
 arch/arm/kernel/machine_kexec.c   |    4 ++
 arch/arm/kernel/relocate_kernel.S |    6 +++
 arch/arm/kernel/setup.c           |   76 +++++++++++++++++++++++++++++++++++++
 9 files changed, 182 insertions(+), 7 deletions(-)
 create mode 100644 arch/arm/kernel/crash_dump.c


Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds