Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-23 Thread Matthias Brugger
On 22/10/2019 13:23, Nicolas Saenz Julienne wrote: > On Mon, 2019-10-21 at 16:36 -0400, Qian Cai wrote: >> I managed to get more information here, >> >> [0.00] cma: dma_contiguous_reserve(limit c000) >> [0.00] cma: dma_contiguous_reserve: reserving 64 MiB for global area >> [

Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-22 Thread Nicolas Saenz Julienne
On Mon, 2019-10-21 at 16:36 -0400, Qian Cai wrote: > I managed to get more information here, > > [0.00] cma: dma_contiguous_reserve(limit c000) > [0.00] cma: dma_contiguous_reserve: reserving 64 MiB for global area > [0.00] cma: cma_declare_contiguous(size 0x040

Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-21 Thread Qian Cai
> On Oct 21, 2019, at 1:55 PM, Nicolas Saenz Julienne > wrote: > > On Mon, 2019-10-21 at 13:25 -0400, Qian Cai wrote: >>> On Oct 21, 2019, at 1:01 PM, Nicolas Saenz Julienne >>> wrote: >>> >>> Could you enable CMA debugging to see if anything interesting comes out of >>> it. >> >> I did bu

Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-21 Thread Nicolas Saenz Julienne
On Mon, 2019-10-21 at 13:25 -0400, Qian Cai wrote: > > On Oct 21, 2019, at 1:01 PM, Nicolas Saenz Julienne > > wrote: > > > > Could you enable CMA debugging to see if anything interesting comes out of > > it. > > I did but nothing interesting came out. Did you use the same config I gave? Yes, a

Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-21 Thread Qian Cai
> On Oct 21, 2019, at 1:01 PM, Nicolas Saenz Julienne > wrote: > > Could you enable CMA debugging to see if anything interesting comes out of it. I did but nothing interesting came out. Did you use the same config I gave? Also, it has those cmdline. page_poison=on page_owner=on numa_balanc

Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-21 Thread Nicolas Saenz Julienne
On Mon, 2019-10-21 at 10:46 -0400, Qian Cai wrote: > > On Oct 21, 2019, at 10:34 AM, Nicolas Saenz Julienne > > wrote: > > > > On Mon, 2019-10-21 at 10:15 -0400, Qian Cai wrote: > > > > On Sep 11, 2019, at 2:25 PM, Nicolas Saenz Julienne < > > > > nsaenzjulie...@suse.de> > > > > wrote: > > > > >

Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-21 Thread Qian Cai
> On Oct 21, 2019, at 10:34 AM, Nicolas Saenz Julienne > wrote: > > On Mon, 2019-10-21 at 10:15 -0400, Qian Cai wrote: >>> On Sep 11, 2019, at 2:25 PM, Nicolas Saenz Julienne >>> wrote: >>> >>> So far all arm64 devices have supported 32 bit DMA masks for their >>> peripherals. This is not t

Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-21 Thread Nicolas Saenz Julienne
On Mon, 2019-10-21 at 10:15 -0400, Qian Cai wrote: > > On Sep 11, 2019, at 2:25 PM, Nicolas Saenz Julienne > > wrote: > > > > So far all arm64 devices have supported 32 bit DMA masks for their > > peripherals. This is not true anymore for the Raspberry Pi 4 as most of > > it's peripherals can onl

Re: [PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-10-21 Thread Qian Cai
> On Sep 11, 2019, at 2:25 PM, Nicolas Saenz Julienne > wrote: > > So far all arm64 devices have supported 32 bit DMA masks for their > peripherals. This is not true anymore for the Raspberry Pi 4 as most of > it's peripherals can only address the first GB of memory on a total of > up to 4 GB

[PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-09-11 Thread Nicolas Saenz Julienne
So far all arm64 devices have supported 32 bit DMA masks for their peripherals. This is not true anymore for the Raspberry Pi 4 as most of it's peripherals can only address the first GB of memory on a total of up to 4 GB. This goes against ZONE_DMA32's intent, as it's expected for ZONE_DMA32 to be