* [PATCH net] octeontx2-af: Fix CQ enable state tracking after AQ writes
@ 2026-10-11 12:54 Alok Tiwari
2026-10-11 12:59 ` netdev-bot+sinfo
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Alok Tiwari @ 2026-10-11 12:54 UTC (permalink / raw)
To: sbhatta, gakula, sgoutham, rkannoth, skardach, andrew+netdev,
davem, edumazet, kuba, pabeni, netdev
Cc: alok.a.tiwarilinux, alok.a.tiwari
Use the CQ context's ena field when updating the CQ enable bitmap.
The current code reads rq.ena, which overlaps bit 0 of the CQ base address
and can leave the bitmap out of sync with the hardware context. This can
cause enabled CQs to be skipped during teardown.
Use sq.ena for the SQ bitmap update as well, so each queue type reads
its own context.
Fixes: 557dd485eaeb ("octeontx2-af: Support for disabling NIX RQ/SQ/CQ contexts")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
---
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
index 964bcaae098e..69c49adaaec2 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
@@ -1231,7 +1231,7 @@ static int rvu_nix_blk_aq_enq_inst(struct rvu *rvu, struct nix_hw *nix_hw,
__clear_bit(req->qidx, pfvf->rq_bmap);
}
if (req->ctype == NIX_AQ_CTYPE_SQ) {
- ena = (req->rq.ena & req->sq_mask.ena) |
+ ena = (req->sq.ena & req->sq_mask.ena) |
(test_bit(req->qidx, pfvf->sq_bmap) &
~req->sq_mask.ena);
if (ena)
@@ -1240,7 +1240,7 @@ static int rvu_nix_blk_aq_enq_inst(struct rvu *rvu, struct nix_hw *nix_hw,
__clear_bit(req->qidx, pfvf->sq_bmap);
}
if (req->ctype == NIX_AQ_CTYPE_CQ) {
- ena = (req->rq.ena & req->cq_mask.ena) |
+ ena = (req->cq.ena & req->cq_mask.ena) |
(test_bit(req->qidx, pfvf->cq_bmap) &
~req->cq_mask.ena);
if (ena)
--
2.52.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net] octeontx2-af: Fix CQ enable state tracking after AQ writes
2026-10-11 12:54 [PATCH net] octeontx2-af: Fix CQ enable state tracking after AQ writes Alok Tiwari
@ 2026-10-11 12:59 ` netdev-bot+sinfo
2026-10-12 4:00 ` Ratheesh Kannoth
2026-10-12 11:44 ` [EXTERNAL] " Sunil Kovvuri Goutham
2 siblings, 0 replies; 4+ messages in thread
From: netdev-bot+sinfo @ 2026-10-11 12:59 UTC (permalink / raw)
To: Alok Tiwari
Cc: sbhatta, gakula, sgoutham, rkannoth, skardach, andrew+netdev,
davem, edumazet, kuba, pabeni, netdev, alok.a.tiwarilinux
Hi!
This is an automated message. This series looks like a fix, but its
commit messages seem to be missing some information:
- How the issue was discovered, e.g. hit in production, hit during
development, syzbot report, manual code inspection, LLM or static
analysis tool scan.
- Whether the issue was actually triggered, or is only theoretical
(e.g. found by code inspection). If it was triggered please include
the symptoms, like the stack trace or error messages.
- What hardware the change was tested on. For driver fixes please
mention the device (and if relevant firmware version) used for
testing, or say that the change was not tested on real hardware.
Please do not repost the series just to address the above. Instead,
reply to this email with the missing information, so that reviewers
can take it into account. If the series needs another revision for
other reasons, please include the information in the commit messages
then.
The evaluation is done by an LLM so it may be wrong, if you think
that is the case please reply and explain.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net] octeontx2-af: Fix CQ enable state tracking after AQ writes
2026-10-11 12:54 [PATCH net] octeontx2-af: Fix CQ enable state tracking after AQ writes Alok Tiwari
2026-10-11 12:59 ` netdev-bot+sinfo
@ 2026-10-12 4:00 ` Ratheesh Kannoth
2026-10-12 11:44 ` [EXTERNAL] " Sunil Kovvuri Goutham
2 siblings, 0 replies; 4+ messages in thread
From: Ratheesh Kannoth @ 2026-10-12 4:00 UTC (permalink / raw)
To: Alok Tiwari
Cc: sbhatta, gakula, sgoutham, skardach, andrew+netdev, davem,
edumazet, kuba, pabeni, netdev, alok.a.tiwarilinux
On 2026-10-11 at 18:24:59, Alok Tiwari (alok.a.tiwari@oracle.com) wrote:
> Use the CQ context's ena field when updating the CQ enable bitmap.
> The current code reads rq.ena, which overlaps bit 0 of the CQ base address
> and can leave the bitmap out of sync with the hardware context. This can
> cause enabled CQs to be skipped during teardown.
>
> Use sq.ena for the SQ bitmap update as well, so each queue type reads
> its own context.
>
> Fixes: 557dd485eaeb ("octeontx2-af: Support for disabling NIX RQ/SQ/CQ contexts")
> Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Thanks.
Reviewed-by: Ratheesh Kannoth <rkannoth@marvell.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [EXTERNAL] [PATCH net] octeontx2-af: Fix CQ enable state tracking after AQ writes
2026-10-11 12:54 [PATCH net] octeontx2-af: Fix CQ enable state tracking after AQ writes Alok Tiwari
2026-10-11 12:59 ` netdev-bot+sinfo
2026-10-12 4:00 ` Ratheesh Kannoth
@ 2026-10-12 11:44 ` Sunil Kovvuri Goutham
2 siblings, 0 replies; 4+ messages in thread
From: Sunil Kovvuri Goutham @ 2026-10-12 11:44 UTC (permalink / raw)
To: Alok Tiwari, Subbaraya Sundeep Bhatta, Geethasowjanya Akula,
Ratheesh Kannoth, Stanislaw Kardach [C], andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, netdev@vger.kernel.org
Cc: alok.a.tiwarilinux@gmail.com
>-----Original Message-----
>From: Alok Tiwari <alok.a.tiwari@oracle.com>
>Sent: Sunday, October 11, 2026 6:25 PM
>To: Subbaraya Sundeep Bhatta <sbhatta@marvell.com>; Geethasowjanya Akula
><gakula@marvell.com>; Sunil Kovvuri Goutham <sgoutham@marvell.com>;
>Ratheesh Kannoth <rkannoth@marvell.com>; Stanislaw Kardach [C]
><skardach@marvell.com>; andrew+netdev@lunn.ch; davem@davemloft.net;
>edumazet@google.com; kuba@kernel.org; pabeni@redhat.com;
>netdev@vger.kernel.org
>Cc: alok.a.tiwarilinux@gmail.com; alok.a.tiwari@oracle.com
>Subject: [EXTERNAL] [PATCH net] octeontx2-af: Fix CQ enable state tracking after
>AQ writes
>
>Use the CQ context's ena field when updating the CQ enable bitmap. The current
>code reads rq. ena, which overlaps bit 0 of the CQ base address and can leave the
>bitmap out of sync with the hardware context. This can cause enabled CQs to be
>skipped ZjQcmQRYFpfptBannerStart Prioritize security for external emails:
>Confirm sender and content safety before clicking links or opening attachments
><https://us-phishalarm-
>ewt.proofpoint.com/EWT/v1/CRVmXkqW!tm3Z1f8UYlXa1C-c-
>X36bxwVD1OhHyxbwwx9i6A7wWiuLiOrgVQt2uzITcavucr4YyipG3xqVrah_PDs1ura
>OG3LbVd2IAqzqPp3$>
>Report Suspicious
>
>ZjQcmQRYFpfptBannerEnd
>Use the CQ context's ena field when updating the CQ enable bitmap.
>The current code reads rq.ena, which overlaps bit 0 of the CQ base address and can
>leave the bitmap out of sync with the hardware context. This can cause enabled
>CQs to be skipped during teardown.
>
>Use sq.ena for the SQ bitmap update as well, so each queue type reads its own
>context.
>
>Fixes: 557dd485eaeb ("octeontx2-af: Support for disabling NIX RQ/SQ/CQ
>contexts")
>Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
>---
> drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
>b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
>index 964bcaae098e..69c49adaaec2 100644
>--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
>+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
>@@ -1231,7 +1231,7 @@ static int rvu_nix_blk_aq_enq_inst(struct rvu *rvu,
>struct nix_hw *nix_hw,
> __clear_bit(req->qidx, pfvf->rq_bmap);
> }
> if (req->ctype == NIX_AQ_CTYPE_SQ) {
>- ena = (req->rq.ena & req->sq_mask.ena) |
>+ ena = (req->sq.ena & req->sq_mask.ena) |
> (test_bit(req->qidx, pfvf->sq_bmap) &
> ~req->sq_mask.ena);
> if (ena)
>@@ -1240,7 +1240,7 @@ static int rvu_nix_blk_aq_enq_inst(struct rvu *rvu,
>struct nix_hw *nix_hw,
> __clear_bit(req->qidx, pfvf->sq_bmap);
> }
> if (req->ctype == NIX_AQ_CTYPE_CQ) {
>- ena = (req->rq.ena & req->cq_mask.ena) |
>+ ena = (req->cq.ena & req->cq_mask.ena) |
> (test_bit(req->qidx, pfvf->cq_bmap) &
> ~req->cq_mask.ena);
> if (ena)
>--
>2.52.0
Thanks for the patch.
Reviewed-by: Sunil Goutham <sgoutham@marvell.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-10-12 11:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-11 12:54 [PATCH net] octeontx2-af: Fix CQ enable state tracking after AQ writes Alok Tiwari
2026-10-11 12:59 ` netdev-bot+sinfo
2026-10-12 4:00 ` Ratheesh Kannoth
2026-10-12 11:44 ` [EXTERNAL] " Sunil Kovvuri Goutham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox