[dpdk-dev] [PATCH] bus/pci: Fix PowerNV platform detection logic
David Christensen
drc at linux.vnet.ibm.com
Tue Jun 15 19:20:27 CEST 2021
Fix the IOMMU detection logic that looks for the "platform" field of
/proc/cpuinfo on POWER systems.
Fixes: 905215731833 ("bus/pci: support IOVA as VA on PowerNV systems")
Signed-off-by: David Christensen <drc at linux.vnet.ibm.com>
---
drivers/bus/pci/linux/pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c
index 0dc99e9cb2..edfe430268 100644
--- a/drivers/bus/pci/linux/pci.c
+++ b/drivers/bus/pci/linux/pci.c
@@ -569,7 +569,7 @@ pci_device_iommu_support_va(__rte_unused const struct rte_pci_device *dev)
/* Check for a PowerNV platform */
while (getline(&line, &len, fp) != -1) {
- if (strstr(line, "platform") != NULL)
+ if (strstr(line, "platform") == NULL)
continue;
if (strstr(line, "PowerNV") != NULL) {
--
2.27.0
More information about the dev
mailing list