WARN_ON(irqs_disabled()) in dma_free_attrs?

Christoph Hellwig hch at lst.de
Fri Mar 2 21:37:11 UTC 2018


On Fri, Mar 02, 2018 at 07:07:06PM +0100, Fredrik Noring wrote:
> What is the best way to proceed? Can dma_free_attrs be reworked to handle
> disabled IRQs?

Why do you want to free coherent dma allocations from irq context?
They generally are a long-term resource that as a rule of thumb should
be allocated in ->probe and freed in ->remove.


More information about the iommu mailing list