diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2019-12-16 11:12:47 +0900 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-01-08 17:05:23 +0000 |
commit | 3751e728cef2908c15974a5ae44627fd41ef3362 (patch) | |
tree | 3c30004b8d4f48e3f9bd6f3c07f0de537b5fd437 /arch/arm64/kernel/kexec_image.c | |
parent | c273a2bd8aa81b72e48736c3aa51f7ffeae39925 (diff) | |
download | linux-3751e728cef2908c15974a5ae44627fd41ef3362.tar.bz2 |
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>
Diffstat (limited to 'arch/arm64/kernel/kexec_image.c')
-rw-r--r-- | arch/arm64/kernel/kexec_image.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm64/kernel/kexec_image.c b/arch/arm64/kernel/kexec_image.c index 29a9428486a5..af9987c154ca 100644 --- a/arch/arm64/kernel/kexec_image.c +++ b/arch/arm64/kernel/kexec_image.c @@ -47,10 +47,6 @@ static void *image_load(struct kimage *image, struct kexec_segment *kernel_segment; int ret; - /* We don't support crash kernels yet. */ - if (image->type == KEXEC_TYPE_CRASH) - return ERR_PTR(-EOPNOTSUPP); - /* * We require a kernel with an unambiguous Image header. Per * Documentation/arm64/booting.rst, this is the case when image_size |