Re: [PATCH] PCI/P2PDMA: Add Zhaoxin host bridges to whitelist
From: Bjorn Helgaas
Date: Thu Sep 03 2026 - 18:23:29 EST
On Tue, Sep 01, 2026 at 04:36:53PM +0800, LeoLiu-oc wrote:
> Zhaoxin host bridges support peer-to-peer DMA. Add their device IDs
> (0x1003, 0x1005-0x1008) to the whitelist so that p2pdma works on these
> platforms.
>
> The entries cover the KX-6000, KH-40000, KX-6000G, KX-7000 and KH-50000
> families.
>
> The KX-6000/KH-40000/KX-6000G/KX-7000 entries are marked
> REQ_SAME_HOST_BRIDGE because P2P requests crossing different host bridges
> are not supported on these parts. The KH-50000 entry is whitelisted
> without this restriction.
>
> Signed-off-by: LeoLiu-oc <leoliu-oc@xxxxxxxxxxx>
Applied to pci/p2pdma for v7.4, thank you!
> ---
> drivers/pci/p2pdma.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c
> index 9334eb314663..9fbbf1692f0e 100644
> --- a/drivers/pci/p2pdma.c
> +++ b/drivers/pci/p2pdma.c
> @@ -569,6 +569,12 @@ static const struct pci_p2pdma_whitelist_entry {
> {PCI_VENDOR_ID_NVIDIA, 0x2f96, 0},
> {PCI_VENDOR_ID_NVIDIA, 0x2f97, 0},
> {PCI_VENDOR_ID_NVIDIA, 0x2f98, 0},
> + /* Zhaoxin KX-6000/KH-40000/KX-6000G/KX-7000/KH-50000 */
> + {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},
> {}
> };
>
> --
> 2.43.0
>
>