diff options
author | Atish Patra <atish.patra@wdc.com> | 2020-07-16 02:30:07 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-05 10:59:51 +0300 |
commit | f88c909dc28cf7a3160cd62bcc23aace5d4fbe3d (patch) | |
tree | 3a5c447881d84ad2d0d3efa8545c7e62825153ed /virt | |
parent | e3043abb5baad736d9255d06f8475666c8f7d649 (diff) | |
download | linux-f88c909dc28cf7a3160cd62bcc23aace5d4fbe3d.tar.xz |
RISC-V: Set maximum number of mapped pages correctly
[ Upstream commit d0d8aae64566b753c4330fbd5944b88af035f299 ]
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>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions