Skip to content

Add support to enable ATS on VFs independently

Ganapatrao Kulkarni linux-arm-kernel linux-iommu linux-pci lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 18 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Added dummy definition for pci_ats_stu_configure.
- Changed STU configure to read modify write.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI/ATS: Add a helper function to configure ATS STU of a PFdrivers/pci/ats.c include/linux/pci-ats.h+34 -216 replies
2/2iommu/arm-smmu-v3: Configure STU of a PF if ATS is not enabled.drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c+24 -11 reply

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 support to enable ATS on VFs independently

As discussed in [1], adding a helper function to configure the STU of an ATS capability. Function pci_ats_stu_configure() can be called to program the STU while enumerating the PF, to support scenarios like PF is not enabled with ATS, whereas VFs can enable it.

In SMMU-V3 driver, calling pci_ats_stu_configure() to confgiure the STU while enumerating a PF in passthrough mode.

[1] https://lore.kernel.org/linux-arm-kernel/20230221154624.GA3701506@bhelgaas/T/

v2:
- Added dummy definition for pci_ats_stu_configure.
- Changed STU configure to read modify write.

Ganapatrao Kulkarni (2):
PCI/ATS: Add a helper function to configure ATS STU of a PF. iommu/arm-smmu-v3: Configure STU of a PF if ATS is not enabled.

 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 25 +++++++++++++++-
 drivers/pci/ats.c                           | 33 +++++++++++++++++++--
 include/linux/pci-ats.h                     |  3 ++
 3 files changed, 58 insertions(+), 3 deletions(-)
Signature · 1 line
2.38.1