]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70dc511fa974fafa8eb7a1c2a4a67f634e53b3f3
tree931be496c94df2ba546b134e2a5058911401e9a7
parent9ac0acec26909ce9cc5c2ab8cbabc6b4d3a04393
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