PCI/P2PDMA: Allow P2PDMA on AMD Zen and newer CPUs
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 29 Jul 2020 23:18:44 +0000 (17:18 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 30 Jul 2020 15:18:17 +0000 (10:18 -0500)
commitdea286bb71baded7d2fb4f090e3b9fd2c1ccac58
tree0603dfe6773b967143297a33949b73d40e897868
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
PCI/P2PDMA: Allow P2PDMA on AMD Zen and newer CPUs

Allow P2PDMA if the CPU vendor is AMD and family is 0x17 (Zen) or greater.

[bhelgaas: commit log, simplify #if/#else/#endif]
Link: https://lore.kernel.org/r/20200729231844.4653-1-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Huang Rui <ray.huang@amd.com>
drivers/pci/p2pdma.c