Re: [BUG] XHCI getting ZONE_DMA32 memory > than its bus_dma_limit

2020-07-07 Thread Christoph Hellwig
On Mon, Jul 06, 2020 at 04:09:36PM +0200, Nicolas Saenz Julienne wrote: > On Sun, 2020-07-05 at 16:41 -0700, David Rientjes wrote: > > On Fri, 3 Jul 2020, Robin Murphy wrote: > > > Or perhaps just get rid of atomic_pool_dma32 (and allocate atomic_pool_dma > > > from ZONE_DMA32 if !ZONE_DMA). That

Re: [BUG] XHCI getting ZONE_DMA32 memory > than its bus_dma_limit

2020-07-06 Thread Nicolas Saenz Julienne
On Sun, 2020-07-05 at 16:41 -0700, David Rientjes wrote: > On Fri, 3 Jul 2020, Robin Murphy wrote: > > > > Just for the record the offending commit is: c84dc6e68a1d2 ("dma-pool: add > > > additional coherent pools to map to gfp mask"). > > > > > > On Thu, 2020-07-02 at 12:49 -0500, Jeremy Linton

Re: [BUG] XHCI getting ZONE_DMA32 memory > than its bus_dma_limit

2020-07-05 Thread David Rientjes
On Fri, 3 Jul 2020, Robin Murphy wrote: > > Just for the record the offending commit is: c84dc6e68a1d2 ("dma-pool: add > > additional coherent pools to map to gfp mask"). > > > > On Thu, 2020-07-02 at 12:49 -0500, Jeremy Linton wrote: > > > Hi, > > > > > > Using 5.8rc3: > > > > > > The rpi4

Re: [BUG] XHCI getting ZONE_DMA32 memory > than its bus_dma_limit

2020-07-03 Thread Robin Murphy
On 2020-07-03 15:53, Nicolas Saenz Julienne wrote: Hi Jeremy, thanks for the bug report. Just for the record the offending commit is: c84dc6e68a1d2 ("dma-pool: add additional coherent pools to map to gfp mask"). On Thu, 2020-07-02 at 12:49 -0500, Jeremy Linton wrote: Hi, Using 5.8rc3: The

Re: [BUG] XHCI getting ZONE_DMA32 memory > than its bus_dma_limit

2020-07-03 Thread Nicolas Saenz Julienne
Hi Jeremy, thanks for the bug report. Just for the record the offending commit is: c84dc6e68a1d2 ("dma-pool: add additional coherent pools to map to gfp mask"). On Thu, 2020-07-02 at 12:49 -0500, Jeremy Linton wrote: > Hi, > > Using 5.8rc3: > > The rpi4 has a 3G dev->bus_dma_limit on its XHCI

[BUG] XHCI getting ZONE_DMA32 memory > than its bus_dma_limit

2020-07-02 Thread Jeremy Linton
Hi, Using 5.8rc3: The rpi4 has a 3G dev->bus_dma_limit on its XHCI controller. With a usb3 hub, plus a few devices plugged in, randomly devices will fail operations. This appears to because xhci_alloc_container_ctx() is getting buffers > 3G via dma_pool_zalloc(). Tracking that down, it