Re: [RFC] arm64: mm: Do not use both DMA zones when 30-bit address space unavailable

2020-09-08 Thread Nicolas Saenz Julienne
Hi Catalin, thanks for taking the time. On Tue, 2020-09-08 at 12:14 +0100, Catalin Marinas wrote: > > Also note the usage of 'zone_dma_bits' in the DMA code, which assumes that > > ZONE_DMA's physical address space is always smaller than (1 << > > zone_dma_bits) - > > 1. > > I think part of

Re: [RFC] arm64: mm: Do not use both DMA zones when 30-bit address space unavailable

2020-09-08 Thread Catalin Marinas
Hi Nicolas, On Mon, Sep 07, 2020 at 07:50:43PM +0200, Nicolas Saenz Julienne wrote: > On Fri, 2020-08-28 at 18:43 +0100, Catalin Marinas wrote: > > On Wed, Aug 19, 2020 at 08:24:33PM +0200, Nicolas Saenz Julienne wrote: > > > There is no benefit in splitting the 32-bit address space into two > >

Re: [RFC] arm64: mm: Do not use both DMA zones when 30-bit address space unavailable

2020-09-07 Thread Nicolas Saenz Julienne
Hi Catalin, sorry for the late reply, I was on vacation. On Fri, 2020-08-28 at 18:43 +0100, Catalin Marinas wrote: > Hi Nicolas, > > On Wed, Aug 19, 2020 at 08:24:33PM +0200, Nicolas Saenz Julienne wrote: > > There is no benefit in splitting the 32-bit address space into two > > distinct DMA

Re: [RFC] arm64: mm: Do not use both DMA zones when 30-bit address space unavailable

2020-08-28 Thread Catalin Marinas
Hi Nicolas, On Wed, Aug 19, 2020 at 08:24:33PM +0200, Nicolas Saenz Julienne wrote: > There is no benefit in splitting the 32-bit address space into two > distinct DMA zones when the 30-bit address space isn't even available on > a device. If that is the case, default to one big ZONE_DMA spanning

[RFC] arm64: mm: Do not use both DMA zones when 30-bit address space unavailable

2020-08-19 Thread Nicolas Saenz Julienne
There is no benefit in splitting the 32-bit address space into two distinct DMA zones when the 30-bit address space isn't even available on a device. If that is the case, default to one big ZONE_DMA spanning the whole 32-bit address space. This will help reduce some of the issues we've seen with