PCI/P2PDMA: Add AMD Zen Raven and Renoir Root Ports to whitelist
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 6 Apr 2020 19:42:01 +0000 (15:42 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 23 Apr 2020 19:54:51 +0000 (14:54 -0500)
According to the hardware architect, pre-Zen parts support p2p writes and
Zen parts support both p2p reads and writes.

Add entries for Zen parts Raven (0x15d0) and Renoir (0x1630).

Link: https://lore.kernel.org/r/20200406194201.846411-1-alexander.deucher@amd.com
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
drivers/pci/p2pdma.c

index b73b10bce0dfee35922aac4938a11885fd0e5030..e8e444eeb1cd263e2ab4705b31632de6042be8d4 100644 (file)
@@ -282,6 +282,8 @@ static const struct pci_p2pdma_whitelist_entry {
 } pci_p2pdma_whitelist[] = {
        /* AMD ZEN */
        {PCI_VENDOR_ID_AMD,     0x1450, 0},
+       {PCI_VENDOR_ID_AMD,     0x15d0, 0},
+       {PCI_VENDOR_ID_AMD,     0x1630, 0},
 
        /* Intel Xeon E5/Core i7 */
        {PCI_VENDOR_ID_INTEL,   0x3c00, REQ_SAME_HOST_BRIDGE},