Skip to content

Fix PF/VF dependency issue

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest7 patches 11 repliesIn review
  2. v68 patches 0 repliesSuperseded
  3. v57 patches 28 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v47 patches3 repliesSuperseded
v37 patches2 repliesSuperseded
v25 patches11 repliesSuperseded
v10 of 5 patches1 replySuperseded

Changes in v7 from the cover letter

* Removed locking interfaces used in v6.
* Made necessary changes to PRI/PASID enable/disable calls to allow register changes only for PF.

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7PCI/ATS: Fix pci_prg_resp_pasid_required() dependency issuesdrivers/pci/ats.c include/linux/pci-ats.h+15 -77 replies
2/7PCI/ATS: Cache PRI capability check resultdrivers/pci/ats.c include/linux/pci.h+32 -250 replies
3/7PCI/ATS: Cache PASID capability check resultdrivers/pci/ats.c include/linux/pci.h+30 -210 replies
4/7PCI/ATS: Add PRI support for PCIe VF devicesdrivers/pci/ats.c+40 -20 replies
5/7PCI/ATS: Add PASID support for PCIe VF devicesdrivers/pci/ats.c+43 -60 replies
6/7PCI/ATS: Disable PF/VF ATS service independentlydrivers/pci/ats.c include/linux/pci.h+0 -120 replies
7/7PCI: Skip Enhanced Allocation (EA) initialization for VF devicedrivers/pci/pci.c+7 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH v7 0/7] Fix PF/VF dependency issue

From: Kuppuswamy Sathyanarayanan <[email protected]>

Current implementation of ATS, PASID, PRI does not handle VF dependencies correctly. Following patches addresses this issue.

Changes since v6:
* Removed locking interfaces used in v6.
* Made necessary changes to PRI/PASID enable/disable calls to allow register changes only for PF.

Changes since v5:
* Created new patches for PRI/PASID capability caching.
* Removed individual locks (pri_lock, pasid_lock) and added common resource lock to synchronize PRI/PASID updates between PF/VF.
* Addressed comments from Bjorn Helgaas.

Changes since v4:
* Defined empty functions for pci_pri_init() and pci_pasid_init() for cases where CONFIG_PCI_PRI and CONFIG_PCI_PASID are not enabled.

Changes since v3:
* Fixed critical path (lock context) in pci_restore_*_state functions.

Changes since v2:
* Added locking mechanism to synchronize accessing PF registers in VF.
* Removed spec compliance checks in patches.
* Addressed comments from Bjorn Helgaas.

Changes since v1:
* Added more details about the patches in commit log.
* Removed bulk spec check patch.
* Addressed comments from Bjorn Helgaas.

Kuppuswamy Sathyanarayanan (7):
PCI/ATS: Fix pci_prg_resp_pasid_required() dependency issues PCI/ATS: Cache PRI capability check result
PCI/ATS: Cache PASID capability check result
PCI/ATS: Add PRI support for PCIe VF devices
PCI/ATS: Add PASID support for PCIe VF devices PCI/ATS: Disable PF/VF ATS service independently
PCI: Skip Enhanced Allocation (EA) initialization for VF device

 drivers/pci/ats.c       | 202 ++++++++++++++++++++++++++++------------
 drivers/pci/pci.c       |   7 ++
 include/linux/pci-ats.h |  12 ++-
 include/linux/pci.h     |   3 +-
 4 files changed, 159 insertions(+), 65 deletions(-)
Signature · 1 line
2.21.0