Skip to content

Fix and improve the LoongArch implementation

Youling Tang kexec 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 1 replyApplied
  2. v17 patches 1 replySuperseded

Changes in v2 from the cover letter

- Add kexec_file support for LoongArch.
- Correct email address and Signed-off-by.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/10kexec: Handle removal of multiple 'crashkernel' parameterskexec/kexec.c+6 -00 replies
2/10LoongArch: Fix commentskexec/arch/loongarch/kexec-pei-loongarch.c+2 -20 replies
3/10LoongArch: Terminate the cmdline string using '\0'kexec/arch/loongarch/kexec-loongarch.c+1 -10 replies
4/10LoongArch: Enforce relocatable kernel check for crash dumpkexec/arch/loongarch/kexec-elf-loongarch.c kexec/arch/loongarch/kexec-pei-loongarch.c+35 -00 replies
5/10LoongArch: Change initrd allocation to top-downkexec/arch/loongarch/kexec-loongarch.c+1 -10 replies
6/10LoongArch: Fix the use of loongarch_image_header in ELF formatkexec/arch/loongarch/image-header.h kexec/arch/loongarch/kexec-elf-loongarch.c+5 -90 replies
7/10LoongArch: Add pe_hdr->machine check for pei format imageskexec/arch/loongarch/image-header.h kexec/arch/loongarch/kexec-pei-loongarch.c+20 -00 replies
8/10LoongArch/pez: Fix kernel_fd handling when kexec_file is supportedkexec/arch/loongarch/kexec-pez-loongarch.c+9 -50 replies
9/10LoongArch: Add kexec_file_load syscallkexec/arch/loongarch/kexec-elf-loongarch.c kexec/arch/loongarch/kexec-loongarch.c kexec/arch/loongarch/kexec-loongarch.h +2 more+50 -10 replies
10/10LoongArch: Remove 'kexec_file' cmdline parameters when using --reuse-cmdline optionkexec/arch/loongarch/kexec-loongarch.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/10] Fix and improve the LoongArch implementation

From: Youling Tang <[email protected]>

- Add kexec_file support for LoongArch.
- Fix and improve the LoongArch implementation.
- Fixed the handling of crashkernel parameters when using --reuse-cmdline.

Kernel support for kexec_file was introduced by the patch detailed in Link [1].

Link[1]:
https://lore.kernel.org/loongarch/[email protected]/T/#t

Changelog:
v2:
- Add kexec_file support for LoongArch.
- Correct email address and Signed-off-by.

Youling Tang (10):
kexec: Handle removal of multiple 'crashkernel' parameters
LoongArch: Fix comments
LoongArch: Terminate the cmdline string using '\0'
LoongArch: Enforce relocatable kernel check for crash dump
LoongArch: Change initrd allocation to top-down
LoongArch: Fix the use of loongarch_image_header in ELF format
LoongArch: Add pe_hdr->machine check for pei format images LoongArch/pez: Fix kernel_fd handling when kexec_file is supported
LoongArch: Add kexec_file_load syscall
LoongArch: Remove 'kexec_file' cmdline parameters when using
--reuse-cmdline option

 kexec/arch/loongarch/image-header.h        |  5 ++-
 kexec/arch/loongarch/kexec-elf-loongarch.c | 47 ++++++++++++++++++----
 kexec/arch/loongarch/kexec-loongarch.c     | 44 +++++++++++++++++++-
 kexec/arch/loongarch/kexec-loongarch.h     |  1 +
 kexec/arch/loongarch/kexec-pei-loongarch.c | 27 ++++++++++++-
 kexec/arch/loongarch/kexec-pez-loongarch.c | 14 ++++---
 kexec/kexec-syscall.h                      |  5 ++-
 kexec/kexec.c                              |  6 +++
 8 files changed, 130 insertions(+), 19 deletions(-)
Signature · 1 line
2.34.1