Re: [PATCH 2/4] RISC-V: Set current memblock limit

2021-01-11 Thread Atish Patra
On Sun, Jan 10, 2021 at 7:59 PM Anup Patel wrote: > > On Thu, Jan 7, 2021 at 2:57 PM Atish Patra wrote: > > > > Currently, linux kernel can not use last 4k bytes of addressable space > > because > > IS_ERR_VALUE macro treats those as an error. This will be an issue for RV32 > > as any memblock

Re: [PATCH 2/4] RISC-V: Set current memblock limit

2021-01-10 Thread Anup Patel
On Thu, Jan 7, 2021 at 2:57 PM Atish Patra wrote: > > Currently, linux kernel can not use last 4k bytes of addressable space because > IS_ERR_VALUE macro treats those as an error. This will be an issue for RV32 > as any memblock allocator potentially allocate chunk of memory from the end > of

[PATCH 2/4] RISC-V: Set current memblock limit

2021-01-07 Thread Atish Patra
Currently, linux kernel can not use last 4k bytes of addressable space because IS_ERR_VALUE macro treats those as an error. This will be an issue for RV32 as any memblock allocator potentially allocate chunk of memory from the end of DRAM (2GB) leading bad address error even though the address was