patch 'baseband/acc: fix acc100 queue mapping to 64 bits' has been queued to stable release 22.11.2

Xueming Li xuemingl at nvidia.com
Mon Feb 27 07:59:17 CET 2023


Hi,

FYI, your patch has been queued to stable release 22.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/01/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=f3d0a011e32075f67f563d2bc5b9a28ec5ca35c0

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From f3d0a011e32075f67f563d2bc5b9a28ec5ca35c0 Mon Sep 17 00:00:00 2001
From: Hernan Vargas <hernan.vargas at intel.com>
Date: Thu, 12 Jan 2023 11:36:06 -0800
Subject: [PATCH] baseband/acc: fix acc100 queue mapping to 64 bits
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 94e3adfcf2784749289496e0a797576296f103fd ]

Fix potential overflow for Q mapping extension to 64 bits.

Fixes: 32e8b7ea35d ("baseband/acc100: refactor to segregate common code")

Signed-off-by: Hernan Vargas <hernan.vargas at intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
 drivers/baseband/acc/rte_acc100_pmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c
index 2f65f290b5..1ca95f4440 100644
--- a/drivers/baseband/acc/rte_acc100_pmd.c
+++ b/drivers/baseband/acc/rte_acc100_pmd.c
@@ -664,7 +664,7 @@ acc100_find_free_queue_idx(struct rte_bbdev *dev,
 	for (aq_idx = 0; aq_idx < qtop->num_aqs_per_groups; aq_idx++) {
 		if (((d->q_assigned_bit_map[group_idx] >> aq_idx) & 0x1) == 0) {
 			/* Mark the Queue as assigned */
-			d->q_assigned_bit_map[group_idx] |= (1 << aq_idx);
+			d->q_assigned_bit_map[group_idx] |= (1ULL << aq_idx);
 			/* Report the AQ Index */
 			return (group_idx << ACC100_GRP_ID_SHIFT) + aq_idx;
 		}
--
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-02-27 14:08:42.521529700 +0800
+++ 0050-baseband-acc-fix-acc100-queue-mapping-to-64-bits.patch	2023-02-27 14:08:40.769237000 +0800
@@ -1 +1 @@
-From 94e3adfcf2784749289496e0a797576296f103fd Mon Sep 17 00:00:00 2001
+From f3d0a011e32075f67f563d2bc5b9a28ec5ca35c0 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 94e3adfcf2784749289496e0a797576296f103fd ]
@@ -9 +11,0 @@
-Cc: stable at dpdk.org
@@ -18 +20 @@
-index eb18cc2215..3660d3b240 100644
+index 2f65f290b5..1ca95f4440 100644
@@ -21 +23 @@
-@@ -662,7 +662,7 @@ acc100_find_free_queue_idx(struct rte_bbdev *dev,
+@@ -664,7 +664,7 @@ acc100_find_free_queue_idx(struct rte_bbdev *dev,


More information about the stable mailing list