arm64: kexec_file: add crash dump support
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Mon, 16 Dec 2019 02:12:47 +0000 (11:12 +0900)
committerWill Deacon <will@kernel.org>
Wed, 8 Jan 2020 17:05:23 +0000 (17:05 +0000)
commit3751e728cef2908c15974a5ae44627fd41ef3362
tree3c30004b8d4f48e3f9bd6f3c07f0de537b5fd437
parentc273a2bd8aa81b72e48736c3aa51f7ffeae39925
arm64: kexec_file: add crash dump support

Enabling crash dump (kdump) includes
* prepare contents of ELF header of a core dump file, /proc/vmcore,
  using crash_prepare_elf64_headers(), and
* add two device tree properties, "linux,usable-memory-range" and
  "linux,elfcorehdr", which represent respectively a memory range
  to be used by crash dump kernel and the header's location

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Reviewed-by: James Morse <james.morse@arm.com>
Tested-and-reviewed-by: Bhupesh Sharma <bhsharma@redhat.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/kexec.h
arch/arm64/kernel/kexec_image.c
arch/arm64/kernel/machine_kexec_file.c