[dpdk-stable] patch 'bus/pci: fix IOVA as VA support for PowerNV' has been queued to stable release 20.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 12 15:04:36 CEST 2021


Hi,

FYI, your patch has been queued to stable release 20.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/14/21. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/00dda0bd97ab56787a5fb714c25a50bcd44cd858

Thanks.

Luca Boccassi

---
>From 00dda0bd97ab56787a5fb714c25a50bcd44cd858 Mon Sep 17 00:00:00 2001
From: David Christensen <drc at linux.vnet.ibm.com>
Date: Tue, 15 Jun 2021 10:20:27 -0700
Subject: [PATCH] bus/pci: fix IOVA as VA support for PowerNV

[ upstream commit cc4219d1f0f0598d4f05ac9e24bafd6532122399 ]

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>
Reviewed-by: David Marchand <david.marchand at redhat.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 2e1808b902..c5402b9652 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.30.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-07-12 13:41:38.799602959 +0100
+++ 0041-bus-pci-fix-IOVA-as-VA-support-for-PowerNV.patch	2021-07-12 13:41:36.330119277 +0100
@@ -1 +1 @@
-From cc4219d1f0f0598d4f05ac9e24bafd6532122399 Mon Sep 17 00:00:00 2001
+From 00dda0bd97ab56787a5fb714c25a50bcd44cd858 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit cc4219d1f0f0598d4f05ac9e24bafd6532122399 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 0dc99e9cb2..edfe430268 100644
+index 2e1808b902..c5402b9652 100644


More information about the stable mailing list