RISC-V: Remove any memblock representing unusable memory area
authorAtish Patra <atish.patra@wdc.com>
Wed, 7 Oct 2020 21:51:59 +0000 (14:51 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 5 Nov 2020 17:56:17 +0000 (09:56 -0800)
commit1bd14a66ee5200d6a24419cbd2e0a0fccd4da36f
tree41ae3dc2bf7ac062e0d5878cb03f3731d85ba025
parent9d750c75bd2c3fcf20a3c15378d1bc6b2d4ec31f
RISC-V: Remove any memblock representing unusable memory area

RISC-V limits the physical memory size by -PAGE_OFFSET. Any memory beyond
that size from DRAM start is unusable. Just remove any memblock pointing
to those memory region without worrying about computing the maximum size.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c