RISC-V: Fix maximum allowed phsyical memory for RV32
authorAtish Patra <atish.patra@wdc.com>
Mon, 11 Jan 2021 23:45:04 +0000 (15:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 10:55:04 +0000 (11:55 +0100)
commit434f246733e7f49c8844b7e1f904b4450d33ab16
treed6c47308aae144fa69c7642fccfa55c6f735850b
parente1b2ecb562fa3c254f3d6b64ec60f440e0b0fb5a
RISC-V: Fix maximum allowed phsyical memory for RV32

[ Upstream commit e557793799c5a8406afb08aa170509619f7eac36 ]

Linux kernel can only map 1GB of address space for RV32 as the page offset
is set to 0xC0000000. The current description in the Kconfig is confusing
as it indicates that RV32 can support 2GB of physical memory. That is
simply not true for current kernel. In future, a 2GB split support can be
added to allow 2GB physical address space.

Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/Kconfig