linux-stable/arch/powerpc/kexec
Sourabh Jain 3c68354116 powerpc/kexec_file: fix cpus node update to FDT
[ Upstream commit 932bed4121 ]

While updating the cpus node, commit 40c753993e ("powerpc/kexec_file:
 Use current CPU info while setting up FDT") first deletes all subnodes
under the /cpus node. However, while adding sub-nodes back, it missed
adding cpus subnodes whose device_type != "cpu", such as l2-cache*,
l3-cache*, ibm,powerpc-cpu-features.

Fix this by only deleting cpus sub-nodes of device_type == "cpus" and
then adding all available nodes with device_type == "cpu".

Fixes: 40c753993e ("powerpc/kexec_file: Use current CPU info while setting up FDT")
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240510102235.2269496-3-sourabhjain@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:49:19 +02:00
..
core.c powerpc/64/kdump: Limit kdump base to 512MB 2022-09-28 19:22:09 +10:00
core_32.c powerpc: Remove CONFIG_FSL_BOOKE 2022-09-26 22:47:37 +10:00
core_64.c powerpc/kexec_file: fix cpus node update to FDT 2024-08-03 08:49:19 +02:00
crash.c powerpc/crash: save cpu register data in crash_smp_send_stop() 2022-07-28 16:22:13 +10:00
elf_64.c
file_load.c
file_load_64.c powerpc/kexec: make the update_cpus_node() function public 2024-08-03 08:49:18 +02:00
Makefile powerpc/kasan: Disable address sanitization in kexec paths 2022-05-22 15:58:29 +10:00
ranges.c
relocate_32.S powerpc: Remove CONFIG_FSL_BOOKE 2022-09-26 22:47:37 +10:00