All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] kexec-tool:bug fix for crashdump load on riscv
@ 2026-05-21  4:06 luo.haiyang
  2026-05-21  4:08 ` [PATCH v4 1/4] RISC-V: fix crashdump load memory ranges luo.haiyang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: luo.haiyang @ 2026-05-21  4:06 UTC (permalink / raw)
  To: kexec, horms; +Cc: zhang.run, cai.qu

From: Luo Haiyang <luo.haiyang@zte.com.cn>

This patchset fixes kexec-tool related to crashdump load on riscv

patch 1: crashload should use all system RAM but crash reserved memory.
patch 2: make the phys_to_virt function return the correct value.
patch 3: vmcore-dmesg accesses the address located in the bss segment,
use kernel image to creat kernel text elf header.
patch 4: due to the kernel image being additionally exported in /proc/iomem,
the kernel memory range is not correctly handled by to_be_excluded.

Changes from v3:
- sorry for the incorrect email format in the previous submission.

Changes from v2:
- use kernel image to creat kernel text elf header
- do not exclude kernel memory range
- https://lore.kernel.org/kexec/20260518145742805S2A5Zwk9KwoEtGDh4p3Pl@zte.com.cn/T/#md89827a089395745d3bd361889e4f3c490641732

Changes from v1:
- Add patch 2 and patch 3 to fix other bug
- https://lore.kernel.org/kexec/20260513171150519t11GTC14QEEV4EgIurNHM@zte.com.cn/T/#u

Luo Haiyang (4):
  RISC-V: fix crashdump load memory ranges
  RISCV: Fix incorrect virtual address translation in crashdump load
  RISC-V: use kernel image to creat kernel text elf header
  RISC-V: kernel image memory rang should not be excluded

 kexec/arch/riscv/Makefile          |   2 +
 kexec/arch/riscv/crashdump-riscv.c | 218 +++++++++++++++++++----------
 kexec/arch/riscv/iomem.h           |   3 +-
 kexec/arch/riscv/kexec-riscv.c     |   8 +-
 util_lib/elf_info.c                |  41 ++++--
 util_lib/include/elf_info.h        |   1 +
 6 files changed, 184 insertions(+), 89 deletions(-)

-- 
2.27.0


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

end of thread, other threads:[~2026-05-27  8:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-21  4:06 [PATCH v4 0/4] kexec-tool:bug fix for crashdump load on riscv luo.haiyang
2026-05-21  4:08 ` [PATCH v4 1/4] RISC-V: fix crashdump load memory ranges luo.haiyang
2026-05-21  4:09 ` [PATCH v4 2/4] RISCV: Fix incorrect virtual address translation in crashdump load luo.haiyang
2026-05-27  7:27   ` [PATCH v4 2/4] RISCV: Fix incorrect virtual address translation in? " Simon Horman
2026-05-27  8:18     ` [PATCH v4 2/4] RISCV: Fix incorrect virtual address translation in " luo.haiyang
2026-05-27  8:30     ` [PATCH v4 2/4] RISCV: Fix incorrect virtual address translation in? " luo.haiyang
2026-05-21  4:12 ` [PATCH v4 3/4] RISC-V: use kernel image to creat kernel text elf header luo.haiyang
2026-05-21  4:13 ` [PATCH v4 4/4] RISC-V: kernel image memory rang should not be excluded luo.haiyang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.