[PATCH v4 0/7] Fix PF/VF dependency issue

From: sathyanarayanan . kuppuswamy
Date: Wed Jul 03 2019 - 16:48:39 EST


From: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx>

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

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

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 v3:
* Fixed critical path (lock context) in pci_restore_*_state functions.

Kuppuswamy Sathyanarayanan (7):
PCI/ATS: Fix pci_prg_resp_pasid_required() dependency issues
PCI/ATS: Initialize PRI in pci_ats_init()
PCI/ATS: Initialize PASID in pci_ats_init()
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 | 378 ++++++++++++++++++++++++++++++----------
drivers/pci/pci.c | 7 +
include/linux/pci-ats.h | 12 +-
include/linux/pci.h | 7 +-
4 files changed, 310 insertions(+), 94 deletions(-)

--
2.21.0