[PATCH] powerpc/kexec_file: account hot-pluggable memory while estimating FDT size
Sourabh Jain
sourabhjain at linux.ibm.com
Fri Dec 16 21:25:08 AEDT 2022
On 16/12/22 11:45, Hari Bathini wrote:
>
>
> On 15/12/22 2:08 pm, Sourabh Jain wrote:
>> 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 <sourabhjain at linux.ibm.com>
>
> Thanks for the fix, Sourabh. Looks good to me.
>
> Acked-by: Hari Bathini <hbathini at linux.ibm.com>
Thanks Hari.
- Sourabh Jain
More information about the Linuxppc-dev
mailing list