riscv/mm: Add XIP_FIXUP for phys_ram_base
authorPalmer Dabbelt <palmer@rivosinc.com>
Fri, 4 Feb 2022 21:13:37 +0000 (13:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2022 18:12:40 +0000 (19:12 +0100)
commitfbf6d5f8eef75411b311cace1f7fceb4f04a1b78
treea25ba39f66cd3d515c6532486a0a36aa65fc2743
parent86a337bb803040e4401b87c974a7fb92efe3d0e1
riscv/mm: Add XIP_FIXUP for phys_ram_base

[ Upstream commit 4b1c70aa8ed8249608bb991380cb8ff423edf49e ]

This manifests as a crash early in boot on VexRiscv.

Signed-off-by: Myrtle Shah <gatecat@ds0.me>
[Palmer: split commit]
Fixes: 6d7f91d914bc ("riscv: Get rid of CONFIG_PHYS_RAM_BASE in kernel physical address conversion")
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/mm/init.c