PCI: Add ACS quirk for APM X-Gene devices
authorFeng Kan <fkan@apm.com>
Thu, 10 Aug 2017 21:06:33 +0000 (16:06 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Aug 2017 21:06:33 +0000 (16:06 -0500)
commita0418aa262dfbe4011df85c8d40993bf21d53cd2
treee349d3a533ded630545fd5598820a281a081aeb1
parent9b44b0b09decfbe388131a345ba780c57240a7a9
PCI: Add ACS quirk for APM X-Gene devices

The APM X-Gene 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.

Signed-off-by: Feng Kan <fkan@apm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Tanmay Inamdar <tinamdar@apm.com>
drivers/pci/quirks.c