linux-yocto/arch/openrisc/kernel
Usama Arif 1103d3b5a5 of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify
[ Upstream commit b2473a3597 ]

 __pa() is only intended to be used for linear map addresses and using
it for initial_boot_params which is in fixmap for arm64 will give an
incorrect value. Hence save the physical address when it is known at
boot time when calling early_init_dt_scan for arm64 and use it at kexec
time instead of converting the virtual address using __pa().

Note that arm64 doesn't need the FDT region reserved in the DT as the
kernel explicitly reserves the passed in FDT. Therefore, only a debug
warning is fixed with this change.

Reported-by: Breno Leitao <leitao@debian.org>
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Usama Arif <usamaarif642@gmail.com>
Fixes: ac10be5cdb ("arm64: Use common of_kexec_alloc_and_setup_fdt()")
Link: https://lore.kernel.org/r/20241023171426.452688-1-usamaarif642@gmail.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-09 10:31:56 +01:00
..
.gitignore
asm-offsets.c
dma.c openrisc: Fix pagewalk usage in arch_dma_{clear, set}_uncached 2022-10-08 06:11:29 +01:00
entry.S openrisc: Support floating point user api 2023-04-26 15:08:06 +01:00
head.S openrisc: Support floating point user api 2023-04-26 15:08:06 +01:00
irq.c
Makefile kbuild: use obj-y instead extra-y for objects placed at the head 2022-10-02 18:04:05 +09:00
module.c
or32_ksyms.c
process.c openrisc: Include cpu.h and switch_to.h for prototypes 2023-08-21 08:15:25 +01:00
prom.c of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify 2024-12-09 10:31:56 +01:00
ptrace.c openrisc: Add missing prototypes for assembly called fnctions 2023-08-21 08:11:54 +01:00
setup.c openrisc: Call setup_memory() earlier in the init sequence 2024-08-29 17:33:39 +02:00
signal.c openrisc: Declare do_signal function as static 2023-08-21 08:12:11 +01:00
smp.c openrisc: Add missing prototypes for assembly called fnctions 2023-08-21 08:11:54 +01:00
stacktrace.c
sync-timer.c
sys_call_table.c
time.c openrisc: Add missing prototypes for assembly called fnctions 2023-08-21 08:11:54 +01:00
traps.c openrisc: traps: Don't send signals to kernel mode threads 2024-06-12 11:11:42 +02:00
unwinder.c openrisc: unwinder: Fix grammar issue in comment 2022-06-28 17:31:24 +09:00
vmlinux.h
vmlinux.lds.S objtool/idle: Validate __cpuidle code as noinstr 2023-01-13 11:48:15 +01:00