[dpdk-stable] patch 'bus/pci: fix UIO resource access from secondary process' has been queued to stable release 19.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue May 19 15:04:20 CEST 2020


Hi,

FYI, your patch has been queued to stable release 19.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 05/21/20. 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.

Thanks.

Luca Boccassi

---
>From e09bf2672d3962c16f2d87b6974c521d06e9f805 Mon Sep 17 00:00:00 2001
From: Vijaya Mohan Guvva <vijay1054 at gmail.com>
Date: Fri, 24 Apr 2020 13:08:28 -0400
Subject: [PATCH] bus/pci: fix UIO resource access from secondary process

[ upstream commit e6cf7bee1c77a0f321cea3494a106bfa5de6f53c ]

For PCI devices presented through igb_uio, pcidev->mem_resource[] is
not populated when the device is initialized for secondary process.

Initialize pcidev->mem_resource[] with pci-bar mapped addresses.

Fixes: eee16c964cd6 ("pci: support multiple PCI regions per device")

Signed-off-by: Vijaya Mohan Guvva <vijay1054 at gmail.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
 drivers/bus/pci/pci_common_uio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/bus/pci/pci_common_uio.c b/drivers/bus/pci/pci_common_uio.c
index 7ea73dbc5b..f4dca9da91 100644
--- a/drivers/bus/pci/pci_common_uio.c
+++ b/drivers/bus/pci/pci_common_uio.c
@@ -70,6 +70,7 @@ pci_uio_map_secondary(struct rte_pci_device *dev)
 				}
 				return -1;
 			}
+			dev->mem_resource[i].addr = mapaddr;
 		}
 		return 0;
 	}
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-05-19 14:04:49.581175365 +0100
+++ 0125-bus-pci-fix-UIO-resource-access-from-secondary-proce.patch	2020-05-19 14:04:44.432652287 +0100
@@ -1,15 +1,16 @@
-From e6cf7bee1c77a0f321cea3494a106bfa5de6f53c Mon Sep 17 00:00:00 2001
+From e09bf2672d3962c16f2d87b6974c521d06e9f805 Mon Sep 17 00:00:00 2001
 From: Vijaya Mohan Guvva <vijay1054 at gmail.com>
 Date: Fri, 24 Apr 2020 13:08:28 -0400
 Subject: [PATCH] bus/pci: fix UIO resource access from secondary process
 
+[ upstream commit e6cf7bee1c77a0f321cea3494a106bfa5de6f53c ]
+
 For PCI devices presented through igb_uio, pcidev->mem_resource[] is
 not populated when the device is initialized for secondary process.
 
 Initialize pcidev->mem_resource[] with pci-bar mapped addresses.
 
 Fixes: eee16c964cd6 ("pci: support multiple PCI regions per device")
-Cc: stable at dpdk.org
 
 Signed-off-by: Vijaya Mohan Guvva <vijay1054 at gmail.com>
 Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>


More information about the stable mailing list