Re: (subset) [PATCH 0/5] riscv: kexec: fix kexec_file with CMA-backed segments
From: Mike Rapoport
Date: Thu Dec 03 2026 - 10:02:59 EST
From: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
On Fri, 23 Oct 2026 15:33:13 +0800, Han Gao wrote:
> I ran into these while doing kexec_file reboots in a loop on a Zhihe
> A210 board. Things mostly worked, but every few rounds the next kernel
> would hang or purgatory would spin, depending on where the segments and
> the DTB happened to land. Most of it goes back to segments now being
> allocated from CMA, which exposed a few assumptions that no longer hold.
> They are separate bugs, so each one gets its own patch.
>
> [...]
I'm taking kexec fixes via the kexec tree, they are relevant for !riscv too.
Applied to kexec-7.5 branch of liveupdate/linux.git tree, thanks!
[3/5] kexec_file: Honor the segment alignment for CMA allocations
commit: 36a58e95fd36c4cf6b052210df5c7c20cb045b8f
[4/5] kexec_core: Clear the unused part of CMA segments
commit: f37797b0fc77d9813bf935495bd5d9c025f54b9f
tree: https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux
branch: kexec-7.5
--
Sincerely yours,
Mike.