Skip to content

Commit aa9b1d0

Browse files
Alexandre Ghitigregkh
authored andcommitted
riscv: Fix wrong usage of __pa() on a fixmap address
commit c796e18 upstream. riscv uses fixmap addresses to map the dtb so we can't use __pa() which is reserved for linear mapping addresses. Fixes: b2473a3 ("of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify") Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20241209074508.53037-1-alexghiti@rivosinc.com Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7ac2535 commit aa9b1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static void __init init_resources(void)
246246
static void __init parse_dtb(void)
247247
{
248248
/* Early scan of device tree from init memory */
249-
if (early_init_dt_scan(dtb_early_va, __pa(dtb_early_va))) {
249+
if (early_init_dt_scan(dtb_early_va, dtb_early_pa)) {
250250
const char *name = of_flat_dt_get_machine_name();
251251

252252
if (name) {

0 commit comments

Comments
 (0)