]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: mm: fix wrong phys_ram_base value for RV64
authorJisheng Zhang <jszhang@kernel.org>
Thu, 2 Dec 2021 15:36:41 +0000 (23:36 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sun, 9 Jan 2022 21:51:48 +0000 (13:51 -0800)
commitfba152ba18049ed6e894c200517e2283d2c79137
treeb2b387e9cafa5e9053297f6ffa94d31ba9dfaadf
parent020f5453ffb80e4dcc5bee052dc0ec987fb0091f
riscv: mm: fix wrong phys_ram_base value for RV64

Currently, if 64BIT and !XIP_KERNEL, the phys_ram_base is always 0,
no matter the real start of dram reported by memblock is.

Fixes: 52d8a372f9b4 ("riscv: Get rid of CONFIG_PHYS_RAM_BASE in kernel physical address conversion")
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Alexandre Ghiti <alex@ghiti.fr>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/init.c