Thread (6 messages) flat view 6 messages, 3 authors, 2023-01-30

Re: [PATCH] powerpc/kexec_file: account hot-pluggable memory while estimating FDT size

From: Sourabh Jain <hidden>
Date: 2022-12-16 10:26:18

On 16/12/22 11:45, Hari Bathini wrote:

On 15/12/22 2:08 pm, Sourabh Jain wrote:
quoted
On Systems where online memory is lesser compared to max memory, the
kexec_file_load system call may fail to load the kdump kernel with the
below errors:

     "Failed to update fdt with linux,drconf-usable-memory property"
     "Error setting up usable-memory property for kdump kernel"

This happens because the size estimation for usable memory properties
for the kdump kernel's FDT is based on the online memory whereas the
usable memory properties include max memory. In short, the hot-pluggable
memory is not accounted for while estimating the size of the usable
memory properties.

The issue is addressed by calculating usable memory property size using
max hotplug address instead of the last online memory address.

Fixes: 2377c92e37fe ("powerpc/kexec_file: fix FDT size estimation for 
kdump kernel")
Signed-off-by: Sourabh Jain <redacted>
Thanks for the fix, Sourabh. Looks good to me.

Acked-by: Hari Bathini <hbathini@linux.ibm.com>
Thanks Hari.

- Sourabh Jain
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help