From: Chris Wright Subject: tegra alloc_pdir Date: Tue, 26 Jun 2012 11:15:55 -0700 Message-ID: <20120626181555.GW15796@sequoia.sous-sol.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline 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: Hiroshi DOYU Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: iommu@lists.linux-foundation.org This looks buggy to me: drivers/iommu/tegra-smmu.c::smmu_iommu_domain_init() spin_lock_irqsave(&tmp->lock, flags); <-- lock held, interrupts off alloc_pdir(as = tmp) devm_kzalloc(..., GFP_KERNEL); <-- potentially sleeping allocation ... alloc_page(..., GFP_KERNEL | __GFP_DMA); <-- same here thanks, -chris