Re: [PATCH] RISCV: Fix end PFN for low memory

2018-09-25 Thread Palmer Dabbelt
On Mon, 24 Sep 2018 13:55:04 PDT (-0700), atish.pa...@wdc.com wrote: On 9/17/18 7:08 AM, Christoph Hellwig wrote: On Tue, Sep 11, 2018 at 11:30:18AM -0700, Atish Patra wrote: Use memblock_end_of_DRAM which provides correct last low memory PFN. Without that, DMA32 region becomes empty resulting

Re: [PATCH] RISCV: Fix end PFN for low memory

2018-09-25 Thread Palmer Dabbelt
On Mon, 24 Sep 2018 13:55:04 PDT (-0700), atish.pa...@wdc.com wrote: On 9/17/18 7:08 AM, Christoph Hellwig wrote: On Tue, Sep 11, 2018 at 11:30:18AM -0700, Atish Patra wrote: Use memblock_end_of_DRAM which provides correct last low memory PFN. Without that, DMA32 region becomes empty resulting

Re: [PATCH] RISCV: Fix end PFN for low memory

2018-09-24 Thread Atish Patra
On 9/17/18 7:08 AM, Christoph Hellwig wrote: On Tue, Sep 11, 2018 at 11:30:18AM -0700, Atish Patra wrote: 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

Re: [PATCH] RISCV: Fix end PFN for low memory

2018-09-24 Thread Atish Patra
On 9/17/18 7:08 AM, Christoph Hellwig wrote: On Tue, Sep 11, 2018 at 11:30:18AM -0700, Atish Patra wrote: 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

Re: [PATCH] RISCV: Fix end PFN for low memory

2018-09-17 Thread Christoph Hellwig
On Tue, Sep 11, 2018 at 11:30:18AM -0700, Atish Patra wrote: > 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 >

Re: [PATCH] RISCV: Fix end PFN for low memory

2018-09-17 Thread Christoph Hellwig
On Tue, Sep 11, 2018 at 11:30:18AM -0700, Atish Patra wrote: > 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 >

[PATCH] RISCV: Fix end PFN for low memory

2018-09-11 Thread Atish Patra
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.

[PATCH] RISCV: Fix end PFN for low memory

2018-09-11 Thread Atish Patra
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.