From: Anton Blanchard Date: Wed, 3 Oct 2012 18:57:10 +0000 (+0000) Subject: powerpc/iommu: Fix multiple issues with IOMMU pools code X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d900bd7366463fd96a907b2c212242e2b68b27d8;p=pandora-kernel.git powerpc/iommu: Fix multiple issues with IOMMU pools code There are a number of issues in the recent IOMMU pools code: - On a preempt kernel we might switch CPUs in the middle of building a scatter gather list. When this happens the handle hint passed in no longer falls within the local CPU's pool. Check for this and fall back to the pool hint. - We were missing a spin_unlock/spin_lock in one spot where we switch pools. - We need to provide locking around dart_tlb_invalidate_all and dart_tlb_invalidate_one now that the global lock is gone. Reported-by: Alexander Graf Signed-off-by: Anton Blanchard Signed-off-by: Benjamin Herrenschmidt CC: [v3.6] --- Reading git-diff-tree failed