pci: ACS fixes & quirks
Status from this message: Applied to pci/aw-acs-fixes-v2 for v3.12, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest posting 2/23 patches 4 repliesApplied
- v2 posting 1/22 patches 7 repliesSuperseded
- v11 patch 2 repliesSuperseded
Patches in v2 posting 2/2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | pci: Fix flaw in pci_acs_enabled()drivers/ | +70 | 0 replies | |
| 2/3 | pci: Differentiate ACS controllable from enableddrivers/ | +9 | 0 replies | |
| 3/3 | pci: ACS quirk for AMD southbridgedrivers/ | +50 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Donald Dutile |
|---|---|
| Series | A-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] pci: ACS fixes & quirks
v2:
Revised patch 1/ to match comments from Bjorn. PCIe event collectors and PCIe-to-PCI bridges now indicate that they do not support ACS. I've reached out to try to get clarification on this, but I think it's reasonable to proceed with a conservative approach until then. I also added PCI-to-PCIe bridges for the sake of being complete. Also added more comments about the purpose and behavior of pci_acs_enabled(). If I've overlooked anything else that needs to be addressed, please let me know.
Patch 2/ had no comments, it's unchanged.
Patch 3/ is added. This was sent as an RFC nearly a year ago and Joerg confirmed for us that these devices do not support p2p on AMD systems with AMD IOMMU. We can't simply use iommu_present() to test for an IOMMU because it's setup just after we need this function. Instead we test for the ACPI IVRS table that describes the IOMMU. It would probably suffice to skip an actual AMD IOMMU check, but I don't want it to later come bite us if these ASICs get re-used, maybe with a different IOMMU, and don't make the same guarantees.
Joerg, I was also curious back when we investigated this patch if the same rules hold true for these other southbridge devices:
1002:43a0 SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0) 1002:43a1 SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1) 1002:43a2 SB900 PCI to PCI bridge (PCIE port 2) 1002:43a3 SB900 PCI to PCI bridge (PCIE port 3)
If you remember or have contacts to poke, I'd be happy to follow-up with another patch to add them. Thanks,
Alex
---
Alex Williamson (3):
pci: Fix flaw in pci_acs_enabled()
pci: Differentiate ACS controllable from enabled
pci: ACS quirk for AMD southbridge
drivers/pci/pci.c | 93 +++++++++++++++++++++++++++++++++++++++++--------- drivers/pci/quirks.c | 50 +++++++++++++++++++++++++++ 2 files changed, 127 insertions(+), 16 deletions(-)