diff options
Diffstat (limited to 'drivers/pci/intel-iommu.c')
-rw-r--r-- | drivers/pci/intel-iommu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index 5cbab7f19ae0..7f757ce60c5a 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c | |||
@@ -46,6 +46,8 @@ | |||
46 | #define ROOT_SIZE VTD_PAGE_SIZE | 46 | #define ROOT_SIZE VTD_PAGE_SIZE |
47 | #define CONTEXT_SIZE VTD_PAGE_SIZE | 47 | #define CONTEXT_SIZE VTD_PAGE_SIZE |
48 | 48 | ||
49 | #define IS_BRIDGE_HOST_DEVICE(pdev) \ | ||
50 | ((pdev->class >> 8) == PCI_CLASS_BRIDGE_HOST) | ||
49 | #define IS_GFX_DEVICE(pdev) ((pdev->class >> 16) == PCI_BASE_CLASS_DISPLAY) | 51 | #define IS_GFX_DEVICE(pdev) ((pdev->class >> 16) == PCI_BASE_CLASS_DISPLAY) |
50 | #define IS_ISA_DEVICE(pdev) ((pdev->class >> 8) == PCI_CLASS_BRIDGE_ISA) | 52 | #define IS_ISA_DEVICE(pdev) ((pdev->class >> 8) == PCI_CLASS_BRIDGE_ISA) |
51 | #define IS_AZALIA(pdev) ((pdev)->vendor == 0x8086 && (pdev)->device == 0x3a3e) | 53 | #define IS_AZALIA(pdev) ((pdev)->vendor == 0x8086 && (pdev)->device == 0x3a3e) |
@@ -2343,6 +2345,9 @@ static int __init iommu_prepare_static_identity_mapping(int hw) | |||
2343 | return -EFAULT; | 2345 | return -EFAULT; |
2344 | 2346 | ||
2345 | for_each_pci_dev(pdev) { | 2347 | for_each_pci_dev(pdev) { |
2348 | /* Skip Host/PCI Bridge devices */ | ||
2349 | if (IS_BRIDGE_HOST_DEVICE(pdev)) | ||
2350 | continue; | ||
2346 | if (iommu_should_identity_map(pdev, 1)) { | 2351 | if (iommu_should_identity_map(pdev, 1)) { |
2347 | printk(KERN_INFO "IOMMU: %s identity mapping for device %s\n", | 2352 | printk(KERN_INFO "IOMMU: %s identity mapping for device %s\n", |
2348 | hw ? "hardware" : "software", pci_name(pdev)); | 2353 | hw ? "hardware" : "software", pci_name(pdev)); |