Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Kexec-tools: Improve RISC-V port
@ 2023-09-15  3:50 Song Shuai
  2023-09-15  3:50 ` [PATCH 1/7] RISC-V: Use linux,usable-memory-range for crash kernel Song Shuai
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Song Shuai @ 2023-09-15  3:50 UTC (permalink / raw)
  To: lizhengyu3, liaochang1, xianting.tian, guoren, horms, horms,
	huanyi.xj, mick, yixun.lan
  Cc: kexec, Song Shuai

Hi,

This series is created to improve RISC-V port of kexec-tools,
and is based on the horms/kexec-tools:build-test-riscv-v2 branch.

For your convenience, here is my Github branch for kexec-tools:
https://github.com/sugarfillet/kexec-tools/commits/rv-Image

The first four patches fixes some build or runtime issues:  

  RISC-V: Use linux,usable-memory-range for crash kernel
  RISC-V: Fix the undeclared ‘EM_RISCV’ build failure
  RISC-V: Get memory ranges from iomem
  RISC-V: Correct the usage of command line option

The last three patches enable the kexec_file_load syscall to load
vmlinux and support loading Image binary file for two syscalls.

  RISC-V: Enable kexe_file_load
  RISC-V: Separate elf_riscv_find_pbase out
  RISC-V: Support loading Image binary file

Note that: 

RISC-V Linux kexec_load_file's support for Image file has been sent out but not merged [1].

[1]: https://lore.kernel.org/linux-riscv/20230914020044.1397356-1-songshuaishuai@tinylab.org/T/#t 

Li Zhengyu (1):
  RISC-V: Enable kexe_file_load

Song Shuai (6):
  RISC-V: Use linux,usable-memory-range for crash kernel
  RISC-V: Fix the undeclared ‘EM_RISCV’ build failure
  RISC-V: Get memory ranges from iomem
  RISC-V: Correct the usage of command line option
  RISC-V: Separate elf_riscv_find_pbase out
  RISC-V: Support loading Image binary file

 kexec/arch/riscv/Makefile            |   2 +
 kexec/arch/riscv/crashdump-riscv.c   |   2 +-
 kexec/arch/riscv/image-header.h      |  88 ++++++++++++++
 kexec/arch/riscv/iomem.h             |  10 ++
 kexec/arch/riscv/kexec-elf-riscv.c   |  77 +-----------
 kexec/arch/riscv/kexec-image-riscv.c |  95 +++++++++++++++
 kexec/arch/riscv/kexec-riscv.c       | 176 ++++++++++++++++++++++-----
 kexec/arch/riscv/kexec-riscv.h       |  21 ++++
 kexec/kexec-syscall.h                |   3 +
 9 files changed, 368 insertions(+), 106 deletions(-)
 create mode 100644 kexec/arch/riscv/image-header.h
 create mode 100644 kexec/arch/riscv/iomem.h
 create mode 100644 kexec/arch/riscv/kexec-image-riscv.c

-- 
2.20.1


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

end of thread, other threads:[~2025-01-10  9:33 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-15  3:50 [PATCH 0/7] Kexec-tools: Improve RISC-V port Song Shuai
2023-09-15  3:50 ` [PATCH 1/7] RISC-V: Use linux,usable-memory-range for crash kernel Song Shuai
2023-09-15  3:50 ` [PATCH 2/7] RISC-V: Fix the undeclared ‘EM_RISCV’ build failure Song Shuai
2023-09-15  3:50 ` [PATCH 3/7] RISC-V: Get memory ranges from iomem Song Shuai
2023-09-15  3:50 ` [PATCH 4/7] RISC-V: Correct the usage of command line option Song Shuai
2023-09-15  3:50 ` [PATCH 5/7] RISC-V: Enable kexe_file_load Song Shuai
2023-09-15  3:50 ` [PATCH 6/7] RISC-V: Separate elf_riscv_find_pbase out Song Shuai
2023-09-15  3:50 ` [PATCH 7/7] RISC-V: Support loading Image binary file Song Shuai
2023-09-20 11:56 ` [PATCH 0/7] Kexec-tools: Improve RISC-V port Simon Horman
2023-10-11  5:22   ` Song Shuai
2024-05-18  3:39     ` Dave Young
2024-05-18  8:33       ` Simon Horman
2024-08-12 14:36         ` Petr Tesarik
2024-08-13 14:26           ` Simon Horman
2024-08-14  8:23           ` Dave Young
2025-01-10  9:22             ` Dave Young
2023-09-20 13:47 ` Nick Kossifidis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox