Skip to contentSkip to conversation

bus/pci: Fix PowerNV platform detection logic

PATCH Applied David Christensen 2 participants 4 messages Jun 15, 2021 – Jul 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bus/pci: Fix PowerNV platform detection logic

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")
---
 drivers/bus/pci/linux/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/pci/linux/pci.c +1 -1
index 0dc99e9cb2..edfe430268 100644
@@ -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) {
Signature · 1 line
2.27.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · David Christensen

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")
Quoted 2 lines

Looking at http://patchwork.dpdk.org/project/dpdk/patch/[email protected]/,
I understand it should be merged after this current patch.
Can you confirm?

Signature · 1 line
David Marchand
#2 lore raw
Quoted 10 lines · David Marchand
Quoted 5 lines · David Christensen

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")
Quoted 1 line
Quoted 6 lines
Quoted 1 line

Looking at http://patchwork.dpdk.org/project/dpdk/patch/[email protected]/,
I understand it should be merged after this current patch.
Can you confirm?

Yes, that's correct.

Dave

#3 lore raw
In reply to David Marchand
Quoted 7 lines · David Marchand
Quoted 4 lines · David Christensen

Fix the IOMMU detection logic that looks for the "platform" field of /proc/cpuinfo on POWER systems.

Quoted 6 lines
Quoted 1 line
Fixes 905215731833 ("bus/pci: support IOVA as VA on PowerNV systems")
Quoted 2 lines

Applied, thanks.

Signature · 1 line
David Marchand