From: Joerg Roedel Date: Fri, 1 Jun 2012 13:20:23 +0000 (+0200) Subject: iommu/amd: Fix deadlock in ppr-handling error path X-Git-Tag: v3.5-rc2~22^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eee53537c476c947bf7faa1c916d2f5a0ae8ec93;p=pandora-kernel.git iommu/amd: Fix deadlock in ppr-handling error path In the error path of the ppr_notifer it can happen that the iommu->lock is taken recursivly. This patch fixes the problem by releasing the iommu->lock before any notifier is invoked. This also requires to move the erratum workaround for the ppr-log (interrupt may be faster than data in the log) one function up. Cc: stable@vger.kernel.org # v3.3, v3.4 Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed