diff options
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 3e8636f1220e..bb05fc50ee2e 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
@@ -901,6 +901,13 @@ static struct intel_iommu *device_to_iommu(struct device *dev, u8 *bus, u8 *devf | |||
901 | struct pci_dev *pf_pdev; | 901 | struct pci_dev *pf_pdev; |
902 | 902 | ||
903 | pdev = to_pci_dev(dev); | 903 | pdev = to_pci_dev(dev); |
904 | |||
905 | #ifdef CONFIG_X86 | ||
906 | /* VMD child devices currently cannot be handled individually */ | ||
907 | if (is_vmd(pdev->bus)) | ||
908 | return NULL; | ||
909 | #endif | ||
910 | |||
904 | /* VFs aren't listed in scope tables; we need to look up | 911 | /* VFs aren't listed in scope tables; we need to look up |
905 | * the PF instead to find the IOMMU. */ | 912 | * the PF instead to find the IOMMU. */ |
906 | pf_pdev = pci_physfn(pdev); | 913 | pf_pdev = pci_physfn(pdev); |