From: David Woodhouse Date: Fri, 3 Apr 2009 23:39:25 +0000 (+0100) Subject: intel-iommu: Fix device-to-iommu mapping for PCI-PCI bridges. X-Git-Tag: v2.6.30-rc1~175^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=924b6231edfaf1e764ffb4f97ea382bf4facff58;p=pandora-kernel.git intel-iommu: Fix device-to-iommu mapping for PCI-PCI bridges. When the DMAR table identifies that a PCI-PCI bridge belongs to a given IOMMU, that means that the bridge and all devices behind it should be associated with the IOMMU. Not just the bridge itself. This fixes the device_to_iommu() function accordingly. (It's broken if you have the same PCI bus numbers in multiple domains, but this function was always broken in that way; I'll be dealing with that later). Signed-off-by: David Woodhouse --- Reading git-diff-tree failed