]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef398f1f3a07f00d96ee5b44b6a206074f5cdee8
tree64ea5c324fc2b1c3188de3029a0b47a0e0709e16
parent90835fa706272fa584ad47aacc29bbff382f9593
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