Skip to contentSkip to conversation

Add page alignment check in Intel IOMMU.

PATCH Superseded [email protected] 1 participant 2 messages Feb 11, 2019 PCI

lore
Share & tools
lore
#0 lore raw

v2 cover Add page alignment check in Intel IOMMU.

From: Kuppuswamy Sathyanarayanan <[email protected]>

As per Intel vt-d specification, Rev 3.0 (section 7.5.1.1, title "Page Request Descriptor"), Intel IOMMU Page Request Descriptor only provides bits[63:12] of the page address. Hence its required to enforce that the device will only send page request with page-aligned address. So, this patch set adds support to verify whether the device uses page aligned address before enabling the ATS service in Intel IOMMU driver.

Kuppuswamy Sathyanarayanan (2):
PCI: ATS: Add function to check ATS page alignment status. iommu/vt-d: Enable ATS only if the device uses page aligned address.

 drivers/iommu/intel-iommu.c   |  1 +
 drivers/pci/ats.c             | 24 ++++++++++++++++++++++++
 include/linux/pci.h           |  2 ++
 include/uapi/linux/pci_regs.h |  1 +
 4 files changed, 28 insertions(+)
Signature · 1 line
2.20.1
#1 lore raw
Quoted 3 lines · On 2/11/19 1:43 PM, [email protected] wrote:

From: Kuppuswamy Sathyanarayanan <[email protected]>

As per Intel vt-d specification, Rev 3.0 (section 7.5.1.1, title "Page Request Descriptor"), Intel IOMMU Page Request Descriptor only provides bits[63:12] of the page address. Hence its required to enforce that the device will only send page request with page-aligned address. So, this patch set adds support to verify whether the device uses page aligned address before enabling the ATS service in Intel IOMMU driver.

Please ignore this mail. This is my older copy.

Quoted 11 lines

Kuppuswamy Sathyanarayanan (2):
PCI: ATS: Add function to check ATS page alignment status. iommu/vt-d: Enable ATS only if the device uses page aligned address.

  drivers/iommu/intel-iommu.c   |  1 +
  drivers/pci/ats.c             | 24 ++++++++++++++++++++++++
  include/linux/pci.h           |  2 ++
  include/uapi/linux/pci_regs.h |  1 +
  4 files changed, 28 insertions(+)
Signature · 2 lines
Sathyanarayanan Kuppuswamy
Linux kernel developer