diff options
author | Sourabh Jain <[email protected]> | 2021-04-29 11:32:56 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2021-05-04 22:26:57 +1000 |
commit | 40c753993e3aad51a12c21233486e2037417a4d6 (patch) | |
tree | 34703cb2fc18b6f738475e8495e2ffa34fc434b1 /tools/perf/util/trace-event-scripting.c | |
parent | 8abddd968a303db75e4debe77a3df484164f1f33 (diff) |
powerpc/kexec_file: Use current CPU info while setting up FDT
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 leaves the kexec'ed kernel
with inaccurate CPU info.
If kdump kernel is loaded with kexec_file_load() syscall and the system
crashes on a hot added CPU, the capture kernel hangs failing to identify
the boot CPU, with no output.
To avoid this from happening, extract current CPU info from of_root
device node and use it for setting up the fdt in kexec_file_load case.
Fixes: 6ecd0163d360 ("powerpc/kexec_file: Add appropriate regions for memory reserve map")
Cc: [email protected] # v5.9+
Signed-off-by: Sourabh Jain <[email protected]>
Reviewed-by: Hari Bathini <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions