linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [BUG] XHCI getting ZONE_DMA32 memory > than its bus_dma_limit
@ 2020-07-02 17:49 Jeremy Linton
  2020-07-03 14:53 ` Nicolas Saenz Julienne
  0 siblings, 1 reply; 6+ messages in thread
From: Jeremy Linton @ 2020-07-02 17:49 UTC (permalink / raw)
  To: linux-arm-kernel, linux-mm, linux-usb, rientjes,
	Christoph Hellwig, Nicolas Saenz Julienne, linux-kernel

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 seems to be caused by dma_alloc_from_pool() using 
dev_to_pool()->dma_direct_optimal_gfp_mask() to "optimistically" select 
the atomic_pool_dma32 but then failing to verify that the allocations in 
the pool are less than the dev bus_dma_limit.

Thanks,



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-07  6:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02 17:49 [BUG] XHCI getting ZONE_DMA32 memory > than its bus_dma_limit Jeremy Linton
2020-07-03 14:53 ` Nicolas Saenz Julienne
2020-07-03 17:42   ` Robin Murphy
2020-07-05 23:41     ` David Rientjes
2020-07-06 14:09       ` Nicolas Saenz Julienne
2020-07-07  6:55         ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).