RISCV: Fix end PFN for low memory
authorAtish Patra <atish.patra@wdc.com>
Tue, 11 Sep 2018 18:30:18 +0000 (11:30 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 2 Oct 2018 19:50:01 +0000 (12:50 -0700)
commitef1f2258748b675422ca0107e5bfb9ceeac675de
tree64ea5c324fc2b1c3188de3029a0b47a0e0709e16
parent17b57b1883c1285f3d0dc2266e8f79286a7bef38
RISCV: Fix end PFN for low memory

Use memblock_end_of_DRAM which provides correct last low memory
PFN. Without that, DMA32 region becomes empty resulting in zero
pages being allocated for DMA32.

This patch is based on earlier patch from palmer which never
merged into 4.19. I just edited the commit text to make more
sense.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/setup.c