PCI: Add DMA alias quirk for PLX PEX NTB
authorJames Sewart <jamessewart@arista.com>
Tue, 10 Dec 2019 22:25:40 +0000 (16:25 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 18 Dec 2019 18:21:25 +0000 (12:21 -0600)
commit7b90dfc4873b87c468cc6046538f46a531c1d785
tree839322fab759aff2106d773e0a980dcb3dc740b1
parent09298542cd891b43778db1f65aa3613aa5a562eb
PCI: Add DMA alias quirk for PLX PEX NTB

The PLX PEX NTB forwards DMA transactions using Requester IDs that don't
exist as PCI devices.  The devfn for a transaction is used as an index into
a lookup table storing the origin of a transaction on the other side of the
bridge.

Alias all possible devfns to the NTB device so that any transaction coming
in is governed by the mappings for the NTB.

Signed-off-by: James Sewart <jamessewart@arista.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
drivers/pci/quirks.c