diff options
| -rw-r--r-- | drivers/iommu/intel-iommu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 30e8584137f5..adc2c9619e56 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
| @@ -1473,7 +1473,8 @@ static void iommu_enable_dev_iotlb(struct device_domain_info *info) | |||
| 1473 | if (info->pri_supported && !pci_reset_pri(pdev) && !pci_enable_pri(pdev, 32)) | 1473 | if (info->pri_supported && !pci_reset_pri(pdev) && !pci_enable_pri(pdev, 32)) |
| 1474 | info->pri_enabled = 1; | 1474 | info->pri_enabled = 1; |
| 1475 | #endif | 1475 | #endif |
| 1476 | if (info->ats_supported && !pci_enable_ats(pdev, VTD_PAGE_SHIFT)) { | 1476 | if (!pdev->untrusted && info->ats_supported && |
| 1477 | !pci_enable_ats(pdev, VTD_PAGE_SHIFT)) { | ||
| 1477 | info->ats_enabled = 1; | 1478 | info->ats_enabled = 1; |
| 1478 | domain_update_iotlb(info->domain); | 1479 | domain_update_iotlb(info->domain); |
| 1479 | info->ats_qdep = pci_ats_queue_depth(pdev); | 1480 | info->ats_qdep = pci_ats_queue_depth(pdev); |
