]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
RISC-V: Set maximum number of mapped pages correctly
authorAtish Patra <atish.patra@wdc.com>
Wed, 15 Jul 2020 23:30:07 +0000 (16:30 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 25 Jul 2020 01:53:42 +0000 (18:53 -0700)
commitd0d8aae64566b753c4330fbd5944b88af035f299
tree14fb81df49acfc0bb108a769fa5e98de8031b04e
parent4cb699d0447be8e0906539f93cbe41e19598ee5a
RISC-V: Set maximum number of mapped pages correctly

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>
arch/riscv/mm/init.c