Re: [PATCH] powerpc/kexec_file: Fix division by zero in extra size estimation

2023-02-05 Thread Michael Ellerman
On Mon, 30 Jan 2023 12:47:07 +1100, Michael Ellerman wrote: > In kexec_extra_fdt_size_ppc64() there's logic to estimate how much > extra space will be needed in the device tree for some memory related > properties. > > That logic uses the size of RAM divided by drmem_lmb_size() to do the > estimat

Re: [PATCH] powerpc/kexec_file: Fix division by zero in extra size estimation

2023-02-01 Thread Hari Bathini
Thanks for the fix, Michael. On 30/01/23 7:17 am, Michael Ellerman wrote: In kexec_extra_fdt_size_ppc64() there's logic to estimate how much extra space will be needed in the device tree for some memory related properties. That logic uses the size of RAM divided by drmem_lmb_size() to do the es

Re: [PATCH] powerpc/kexec_file: Fix division by zero in extra size estimation

2023-01-31 Thread Sourabh Jain
On 01/02/23 07:25, Michael Ellerman wrote: Sourabh Jain writes: On 30/01/23 07:17, Michael Ellerman wrote: In kexec_extra_fdt_size_ppc64() there's logic to estimate how much extra space will be needed in the device tree for some memory related properties. That logic uses the size of RAM div

Re: [PATCH] powerpc/kexec_file: Fix division by zero in extra size estimation

2023-01-31 Thread Michael Ellerman
Sourabh Jain writes: > On 30/01/23 07:17, Michael Ellerman wrote: >> In kexec_extra_fdt_size_ppc64() there's logic to estimate how much >> extra space will be needed in the device tree for some memory related >> properties. >> >> That logic uses the size of RAM divided by drmem_lmb_size() to do th

Re: [PATCH] powerpc/kexec_file: Fix division by zero in extra size estimation

2023-01-31 Thread Sourabh Jain
Hello Michael, On 30/01/23 07:17, Michael Ellerman wrote: In kexec_extra_fdt_size_ppc64() there's logic to estimate how much extra space will be needed in the device tree for some memory related properties. That logic uses the size of RAM divided by drmem_lmb_size() to do the estimation. Howeve

[PATCH] powerpc/kexec_file: Fix division by zero in extra size estimation

2023-01-29 Thread Michael Ellerman
In kexec_extra_fdt_size_ppc64() there's logic to estimate how much extra space will be needed in the device tree for some memory related properties. That logic uses the size of RAM divided by drmem_lmb_size() to do the estimation. However drmem_lmb_size() can be zero if the machine has no hotplugg