loongarch.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] LoongArch: Add kexec/kdump support
@ 2022-08-29  4:37 Youling Tang
  2022-08-29  4:37 ` [PATCH 1/3] LoongArch: Add kexec support Youling Tang
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Youling Tang @ 2022-08-29  4:37 UTC (permalink / raw)
  To: Huacai Chen, Baoquan He, Eric Biederman
  Cc: WANG Xuerui, Vivek Goyal, Dave Young, Guo Ren, Jiaxun Yang,
	kexec, loongarch, linux-kernel

This patch series to support kexec/kdump (only 64bit).

Kexec is a system call that enables you to load and boot into another kernel
from the currently running kernel. This is useful for kernel developers or
other people who need to reboot very quickly without waiting for the whole
BIOS boot process to finish. 

Kdump uses kexec to quickly boot to a dump-capture kernel whenever a
dump of the system kernel's memory needs to be taken (for example, when
the system panics). The system kernel's memory image is preserved across
the reboot and is accessible to the dump-capture kernel.

For details, see Documentation/admin-guide/kdump/kdump.rst.

User tools kexec-tools see link [1].

TODO:
Currently kdump does not support the same binary image, the production kernel
and the capture kernel will be generated with different configurations. I will
support kernel relocation support in the near future. Then will go to implement
the same binary support based on kernel relocation support.

[1] Link: https://github.com/tangyouling/kexec-tools


Youling Tang (3):
  LoongArch: Add kexec support
  LoongArch: Add kdump support
  LoongArch: Enable CONFIG_KEXEC

 arch/loongarch/Kconfig                     |  33 ++++
 arch/loongarch/Makefile                    |   4 +
 arch/loongarch/configs/loongson3_defconfig |   1 +
 arch/loongarch/include/asm/kexec.h         |  58 +++++++
 arch/loongarch/kernel/Makefile             |   3 +
 arch/loongarch/kernel/crash.c              | 100 ++++++++++++
 arch/loongarch/kernel/crash_dump.c         |  19 +++
 arch/loongarch/kernel/head.S               |   7 +-
 arch/loongarch/kernel/machine_kexec.c      | 176 +++++++++++++++++++++
 arch/loongarch/kernel/mem.c                |   6 +
 arch/loongarch/kernel/relocate_kernel.S    | 131 +++++++++++++++
 arch/loongarch/kernel/setup.c              |  49 ++++++
 arch/loongarch/kernel/traps.c              |   4 +
 13 files changed, 590 insertions(+), 1 deletion(-)
 create mode 100644 arch/loongarch/include/asm/kexec.h
 create mode 100644 arch/loongarch/kernel/crash.c
 create mode 100644 arch/loongarch/kernel/crash_dump.c
 create mode 100644 arch/loongarch/kernel/machine_kexec.c
 create mode 100644 arch/loongarch/kernel/relocate_kernel.S

-- 
2.36.0


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-09-05 13:07 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29  4:37 [PATCH 0/3] LoongArch: Add kexec/kdump support Youling Tang
2022-08-29  4:37 ` [PATCH 1/3] LoongArch: Add kexec support Youling Tang
2022-08-30  1:53   ` Jinyang He
2022-08-30  3:25     ` Youling Tang
2022-08-30  3:42       ` Huacai Chen
2022-08-30  4:07         ` Jinyang He
2022-08-31  3:38       ` Youling Tang
2022-09-05  1:01   ` Youling Tang
2022-08-29  4:37 ` [PATCH 2/3] LoongArch: Add kdump support Youling Tang
2022-09-04 12:21   ` Huacai Chen
2022-09-05  0:54     ` Youling Tang
2022-09-05  1:38       ` Huacai Chen
2022-09-05  2:04         ` Youling Tang
2022-09-05  2:14           ` Huacai Chen
2022-09-05  2:21             ` Youling Tang
2022-09-05  7:32               ` Huacai Chen
2022-09-05  7:45                 ` Youling Tang
2022-09-05 13:01                   ` Huacai Chen
2022-09-05 13:07                     ` Youling Tang
2022-08-29  4:37 ` [PATCH 3/3] LoongArch: Enable CONFIG_KEXEC Youling Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).