Re: [PATCH v3] powerpc/kexec_file: use current CPU info while setting up FDT

2021-04-18 Thread Hari Bathini
Hi Sourabh, Thanks for fixing this. Generating an FDT based on of_root (the latest unflattened device-tree) should be ideal as something similar to what is done for /cpus here applies to /memory@* & /ibm,dynamic-reconfiguration-memory nodes too (probably also applies to other nodes like pci@*

[PATCH v3] powerpc/kexec_file: use current CPU info while setting up FDT

2021-04-16 Thread Sourabh Jain
kexec_file_load uses initial_boot_params in setting up the device-tree for the kernel to be loaded. Though initial_boot_params holds info about CPUs at the time of boot, it doesn't account for hot added CPUs. So, kexec'ing with kexec_file_load syscall would leave the kexec'ed kernel with inaccurat