[PATCH v1 4/8] s390/boot: Allow additional usable memory ranges
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 12 03:33:16 PST 2026
> All online memory above the usable limit is left unused. A kdump kernel
> will need a few ranges above that limit for the crashkernel CMA memory
> of the crashed kernel.
>
> Add physmem_add_usable_range() to register usable memory ranges. Clip
> them to ident_map_size and merge overlapping or adjacent ranges.
> for_each_physmem_usable_range() walks their intersection with the
> online memory ranges.
>
> Use the same ranges for boot allocations, identity mappings, KASAN
> shadow and memblock. Keep the allocation position separate from the
> usable ranges.
>
> When no extra ranges are added, nothing changes.
>
> Co-developed-by: Vasily Gorbik <gor at linux.ibm.com>
> Signed-off-by: Vasily Gorbik <gor at linux.ibm.com>
> Signed-off-by: Mikhail Zaslonko <zaslonko at linux.ibm.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261112112105.1169118-1-zaslonko@linux.ibm.com?part=4
More information about the kexec
mailing list