From: Chris Wright Subject: Re: atomic context for iommu_map call Date: Mon, 25 Jun 2012 11:35:38 -0700 Message-ID: <20120625183538.GU15796@sequoia.sous-sol.org> References: <20120622112812.GV8140@oktetlabs.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20120622112812.GV8140-mK/T7fl7eHLILq5++fvS8w@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: "Alexandra N. Kossovsky" Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Robert Stonehouse List-Id: iommu@lists.linux-foundation.org * Alexandra N. Kossovsky (Alexandra.Kossovsky-mK/T7fl7eHLILq5++fvS8w@public.gmane.org) wrote: > It is not clear from the documentation if iommu_map()/iommu_unmap() > functions may be called from atomic context. > In case of Intel IOMMU, it works; in case of AMD IOMMU, it does not. > > Was it done by purpose? May I propose a patch for AMD IOMMU replacing > GFP_KERNEL by GFP_ATOMIC to make things better? Looks like omap calls iopte_alloc which does GFP_KERNEL allocation too. > We use IOMMU API in OpenOnload project http://www.openonload.org/, > and we get better latency with Intel IOMMU because we are not > forced to use threaded IRQ. Have you looked at VFIO (and possibly libusnic is still up to date)? thanks, -chris