patch 'common/cnxk: fix CPT CQ base address calculation' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:02:52 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. 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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/889db11ed69529cbae4222a799cbe634eb775d3b
Thanks.
Kevin
---
>From 889db11ed69529cbae4222a799cbe634eb775d3b Mon Sep 17 00:00:00 2001
From: Alok Mishra <almishra at marvell.com>
Date: Thu, 17 Sep 2026 12:40:13 +0530
Subject: [PATCH] common/cnxk: fix CPT CQ base address calculation
[ upstream commit 5c78b7ec488bcb99ba4b53b56ca5038ff3a29383 ]
In nix_inl_cpt_cq_cb(), the CPT CQ base address is reconstructed by
left-shifting CPT_LF_CQ_BASE.s.addr by 7 bits. Since s.addr is a 46-bit
field, the shift operation truncates the result to 46 bits, discarding
any higher address bits.
This produces an incorrect CQ base address for higher virtual
addresses, causing invalid memory access.
Fixed by casting s.addr to uint64_t before shifting, ensuring the full
64-bit address is preserved.
Fixes: 63b16e267106 ("common/cnxk: fix CPT CQ roll over handling")
Signed-off-by: Alok Mishra <almishra at marvell.com>
---
drivers/common/cnxk/roc_nix_inl_dev_irq.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/roc_nix_inl_dev_irq.c b/drivers/common/cnxk/roc_nix_inl_dev_irq.c
index 7270e4f985..3d7d9dba54 100644
--- a/drivers/common/cnxk/roc_nix_inl_dev_irq.c
+++ b/drivers/common/cnxk/roc_nix_inl_dev_irq.c
@@ -77,5 +77,6 @@ nix_inl_cpt_cq_cb(struct roc_cpt_lf *lf)
for (i = 0; i < count; i++) {
- cq_s = (struct cpt_cq_s *)(uintptr_t)(((cq_base.s.addr << 7)) + (head << 5));
+ cq_s = (struct cpt_cq_s *)(uintptr_t)((((uint64_t)cq_base.s.addr << 7)) +
+ (head << 5));
if (cq_s->w0.s.uc_compcode && cq_s->w0.s.compcode) {
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:46.213406926 +0000
+++ 0246-common-cnxk-fix-CPT-CQ-base-address-calculation.patch 2026-12-03 12:52:39.200339223 +0000
@@ -1 +1 @@
-From 5c78b7ec488bcb99ba4b53b56ca5038ff3a29383 Mon Sep 17 00:00:00 2001
+From 889db11ed69529cbae4222a799cbe634eb775d3b Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 5c78b7ec488bcb99ba4b53b56ca5038ff3a29383 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -26 +27 @@
-index dcf77a29a5..977b5e05e2 100644
+index 7270e4f985..3d7d9dba54 100644
@@ -29 +30 @@
-@@ -104,5 +104,6 @@ nix_inl_cpt_cq_cb(struct roc_cpt_lf *lf)
+@@ -77,5 +77,6 @@ nix_inl_cpt_cq_cb(struct roc_cpt_lf *lf)
More information about the stable
mailing list