From: hotforest <hotforest@gmail.com> hulk inclusion category: feature bugzilla: https://atomgit.com/openeuler/kernel/issues/10302 -------------------------------- Allow peer-to-peer DMA through HiSilicon root ports (19e5:a120), including ports on different host bridges. A whitelist entry without REQ_SAME_HOST_BRIDGE gives unconditional cross-root-complex behavior; no boot parameter or runtime switch is needed. Signed-off-by: hotforest <hotforest@gmail.com> Signed-off-by: Zizhi Wo <wozizhi@huawei.com> --- drivers/pci/p2pdma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c index 5139c205287c..b807f3fa221d 100644 --- a/drivers/pci/p2pdma.c +++ b/drivers/pci/p2pdma.c @@ -447,10 +447,12 @@ static const struct pci_p2pdma_whitelist_entry { {PCI_VENDOR_ID_ZHAOXIN, 0x1003, REQ_SAME_HOST_BRIDGE}, {PCI_VENDOR_ID_ZHAOXIN, 0x1005, REQ_SAME_HOST_BRIDGE}, {PCI_VENDOR_ID_ZHAOXIN, 0x1006, REQ_SAME_HOST_BRIDGE}, {PCI_VENDOR_ID_ZHAOXIN, 0x1007, REQ_SAME_HOST_BRIDGE}, {PCI_VENDOR_ID_ZHAOXIN, 0x1008, 0}, + /* HiSilicon Kunpeng 920 root ports */ + {PCI_VENDOR_ID_HUAWEI, 0xa120, 0}, {} }; /* * If the first device on host's root bus is either devfn 00.0 or a PCIe -- 2.52.0