Skip to content

Commit 61363c1

Browse files
Kuppuswamy Sathyanarayananjoergroedel
authored andcommitted
iommu/vt-d: Enable ATS only if the device uses page aligned address.
As per Intel vt-d specification, Rev 3.0 (section 7.5.1.1, title "Page Request Descriptor"), Intel IOMMU page request descriptor only uses bits[63:12] of the page address. Hence Intel IOMMU driver would only permit devices that advertise they would only send Page Aligned Requests to participate in ATS service. Cc: Ashok Raj <ashok.raj@intel.com> Cc: Jacob Pan <jacob.jun.pan@linux.intel.com> Cc: Keith Busch <keith.busch@intel.com> Suggested-by: Ashok Raj <ashok.raj@intel.com> Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 8c938dd commit 61363c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iommu/intel-iommu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,7 @@ static void iommu_enable_dev_iotlb(struct device_domain_info *info)
14081408
info->pri_enabled = 1;
14091409
#endif
14101410
if (!pdev->untrusted && info->ats_supported &&
1411+
pci_ats_page_aligned(pdev) &&
14111412
!pci_enable_ats(pdev, VTD_PAGE_SHIFT)) {
14121413
info->ats_enabled = 1;
14131414
domain_update_iotlb(info->domain);

0 commit comments

Comments
 (0)