Re: [PATCH 4/4] riscv: Parse all memory blocks to remove unusable memory

2020-07-24 Thread Palmer Dabbelt
On Wed, 15 Jul 2020 16:30:09 PDT (-0700), Atish Patra wrote: Currently, maximum physical memory allowed is equal to -PAGE_OFFSET. That's why we remove any memory blocks spanning beyond that size. However, it is done only for memblock containing linux kernel which will not work if there are multip

[PATCH 4/4] riscv: Parse all memory blocks to remove unusable memory

2020-07-15 Thread Atish Patra
Currently, maximum physical memory allowed is equal to -PAGE_OFFSET. That's why we remove any memory blocks spanning beyond that size. However, it is done only for memblock containing linux kernel which will not work if there are multiple memblocks. Process all memory blocks to figure out how much