PCI/P2PDMA: Apply host bridge whitelist for ACS
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 12 Aug 2019 17:30:39 +0000 (11:30 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Aug 2019 13:40:50 +0000 (08:40 -0500)
commite2cbfbf78968db3e3a71cb989af17f4f6448bf49
tree931be496c94df2ba546b134e2a5058911401e9a7
parentc6bfaeb573a6caae4b96885b8bad63ee57495c77
PCI/P2PDMA: Apply host bridge whitelist for ACS

When a P2PDMA transfer is rejected due to ACS being set, we can also check
the whitelist and allow the transactions.

Do this by pushing the whitelist check into the upstream_bridge_distance()
function.

Link: https://lore.kernel.org/r/20190730163545.4915-6-logang@deltatee.com
Link: https://lore.kernel.org/r/20190812173048.9186-6-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/pci/p2pdma.c