]> git.baikalelectronics.ru Git - 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)
commit6f54e8359c225edd155b3a4b4a4a4dc0facb6fc1
tree14fb81df49acfc0bb108a769fa5e98de8031b04e
parent0afd915fe73a6181d53a4a82511d86c4f7204fe9
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