]> 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)
commit92d811ade8e887f3bfd77c851f4e16cc3d63545e
tree14fb81df49acfc0bb108a769fa5e98de8031b04e
parent1beb532a9128eb058598ea54a8374061ba5906a0
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