Re: [PATCH v2] RISC-V: Remove any memblock representing unusable memory area

2020-09-19 Thread Mike Rapoport
On Thu, Sep 17, 2020 at 04:40:55PM -0700, Atish Patra wrote: > 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

[PATCH v2] RISC-V: Remove any memblock representing unusable memory area

2020-09-17 Thread Atish Patra
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 --- Changes from v1->v2: Used memblock_enforce_me