projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d52e1a
)
PCI/P2PDMA: Allow IOMMU for host bridge whitelist
author
Logan Gunthorpe
<logang@deltatee.com>
Mon, 12 Aug 2019 17:30:47 +0000
(11:30 -0600)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 16 Aug 2019 13:41:54 +0000
(08:41 -0500)
Now that we map the requests correctly we can remove the iommu_present()
restriction.
Link:
https://lore.kernel.org/r/20190730163545.4915-14-logang@deltatee.com
Link:
https://lore.kernel.org/r/20190812173048.9186-14-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/pci/p2pdma.c
patch
|
blob
|
history
diff --git
a/drivers/pci/p2pdma.c
b/drivers/pci/p2pdma.c
index bca1ffc7075e60b7f678a0793805708286cdc83e..d8c824097d26e2d2178958295fd4cb5806bb2237 100644
(file)
--- a/
drivers/pci/p2pdma.c
+++ b/
drivers/pci/p2pdma.c
@@
-18,7
+18,6
@@
#include <linux/percpu-refcount.h>
#include <linux/random.h>
#include <linux/seq_buf.h>
-#include <linux/iommu.h>
#include <linux/xarray.h>
enum pci_p2pdma_map_type {
@@
-328,9
+327,6
@@
static bool host_bridge_whitelist(struct pci_dev *a, struct pci_dev *b)
struct pci_host_bridge *host_a = pci_find_host_bridge(a->bus);
struct pci_host_bridge *host_b = pci_find_host_bridge(b->bus);
- if (iommu_present(a->dev.bus) || iommu_present(b->dev.bus))
- return false;
-
if (host_a == host_b)
return __host_bridge_whitelist(host_a, true);