[PATCH v4 07/10] of: reserved_mem: add kdump helpers to exclude non-dumpable regions
Pratyush Yadav
pratyush at kernel.org
Tue Jun 30 04:06:21 PDT 2026
On Tue, Jun 30 2026, Wandun Chen wrote:
> From: Wandun Chen <chenwandun at lixiang.com>
>
> Add two helpers to exclude non-dumpable regions for arch-specific
> code.
>
> - of_reserved_mem_kdump_nr_ranges() returns the count of regions
> that are not dumpable. Each excluded region may split an existing
> crash_mem range into two, so callers use this to calculate
> crash_mem allocation size.
>
> - of_reserved_mem_kdump_exclude() walks reserved_mem[] and calls
> crash_exclude_mem_range() for every non-dumpable region.
>
> Signed-off-by: Wandun Chen <chenwandun at lixiang.com>
> Tested-by: Meijing Zhao <zhaomeijing at lixiang.com>
Acked-by: Pratyush Yadav <pratyush at kernel.org>
[...]
--
Regards,
Pratyush Yadav
More information about the linux-arm-kernel
mailing list