PCI: Add ACS quirk for Ampere root ports
authorFeng Kan <fkan@apm.com>
Wed, 21 Feb 2018 03:19:27 +0000 (19:19 -0800)
committerBjorn Helgaas <helgaas@kernel.org>
Thu, 22 Feb 2018 23:47:31 +0000 (17:47 -0600)
commit4ef76ad0462cf25ce948541c8724eaa8a8365e1d
treee811283472eac1aaf1b3d5dbd2208b66eb6eb4c5
parent204f4afa7ae50239c39adb13af42f5720fe7e9a5
PCI: Add ACS quirk for Ampere root ports

The Ampere Computing PCIe root port does not support ACS at this point.
However, the hardware provides isolation and source validation through the
SMMU. The stream ID generated by the PCIe ports contain both the
bus/device/function number as well as the port ID in its 3 most significant
bits. Turn on ACS but disable all the peer-to-peer features.

APM is being rebranded to Ampere.  The Vendor and Device IDs change, but
the functionality stays the same.

Signed-off-by: Feng Kan <fkan@apm.com>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
drivers/pci/quirks.c
include/linux/pci_ids.h