From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: WARN_ON(irqs_disabled()) in dma_free_attrs? Date: Sat, 3 Mar 2018 17:12:49 +0100 Message-ID: <20180303161249.GA9516@lst.de> References: <20180302180704.GA3846@localhost.localdomain> <20180302213711.GA30356@lst.de> <20180303082234.GB24991@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20180303082234.GB24991-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Fredrik Noring Cc: =?iso-8859-1?Q?J=FCrgen?= Urban , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Christoph Hellwig List-Id: iommu@lists.linux-foundation.org On Sat, Mar 03, 2018 at 09:22:35AM +0100, Fredrik Noring wrote: > Critically, it performs the following calls: If it is allocating / freeing this memory all the time in the hot path it should really use a dma pool (see include/ilinux/dmapool.h). The dma coherent APIs aren't really built for being called in the hot path.