linux/arch/riscv
Atish Patra f88c909dc2 RISC-V: Set maximum number of mapped pages correctly
[ Upstream commit d0d8aae645 ]

Currently, maximum number of mapper pages are set to the pfn calculated
from the memblock size of the memblock containing kernel. This will work
until that memblock spans the entire memory. However, it will be set to
a wrong value if there are multiple memblocks defined in kernel
(e.g. with efi runtime services).

Set the the maximum value to the pfn calculated from dram size.

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>
2020-08-05 09:59:51 +02:00
..
boot
configs
include RISC-V: Upgrade smp_mb__after_spinlock() to iorw,iorw 2020-07-29 10:18:40 +02:00
kernel RISC-V: Don't allow write+exec only page mapping request in mmap 2020-06-30 15:37:06 -04:00
lib
mm RISC-V: Set maximum number of mapped pages correctly 2020-08-05 09:59:51 +02:00
net
Kbuild
Kconfig
Kconfig.debug
Kconfig.socs
Makefile