Skip to content

Add page alignment check in Intel IOMMU.

[email protected] linux-iommu linux-pci lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/22 patches 1 replyIn review
  2. v2 posting 1/20 of 2 patches 1 replySuperseded
  3. v12 patches 10 repliesSuperseded

Changes in v2 from the cover letter

* Fixed issue with PCI_ATS_CAP_PAGE_ALIGNED macro.
* Fixed comments.

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI/ATS: Add pci_ats_page_aligned() interfacedrivers/pci/ats.c include/linux/pci.h include/uapi/linux/pci_regs.h+30 -01 reply
2/2iommu/vt-d: Enable ATS only if the device uses page aligned address.drivers/iommu/intel-iommu.c+1 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchBjorn Helgaas
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] 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 uses 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.

Changes since v1:
* Fixed issue with PCI_ATS_CAP_PAGE_ALIGNED macro.
* Fixed comments.

Kuppuswamy Sathyanarayanan (2):
PCI/ATS: Add pci_ats_page_aligned() interface
iommu/vt-d: Enable ATS only if the device uses page aligned address.

 drivers/iommu/intel-iommu.c   |  1 +
 drivers/pci/ats.c             | 27 +++++++++++++++++++++++++++
 include/linux/pci.h           |  2 ++
 include/uapi/linux/pci_regs.h |  1 +
 4 files changed, 31 insertions(+)
Signature · 1 line
2.20.1