PCI: Add device-specific ACS Redirect disable infrastructure
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 9 Aug 2018 21:51:43 +0000 (16:51 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 9 Aug 2018 22:48:28 +0000 (17:48 -0500)
commit73c47ddef29b5869a2221e93cefdb56fd8263718
tree5b258b2b7d70ce1ac59847ceec2d0f7013297a25
parent3b269185c19268027ac79388b03c9d7322518e4c
PCI: Add device-specific ACS Redirect disable infrastructure

Intel Sunrise Point (SPT) PCH hardware has an implementation of the ACS
bits that does not comply with the PCIe standard.  To deal with this we
need device-specific quirks to disable ACS redirection.

Add a new pci_dev_specific_disable_acs_redir() quirk and a new
.disable_acs_redir() function pointer for use by non-compliant devices.  No
functional change intended.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
[bhelgaas: split to separate patch, move
pci_dev_specific_disable_acs_redir() declarations to drivers/pci/pci.h]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/quirks.c