Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Sunny Tiwari" <sunnytiwari@google.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH] RDMA/irdma: Bound in-flight CQP ops across deferred completions
Date: Sat, 17 Oct 2026 05:33:05 +0000	[thread overview]
Message-ID: <sashiko-outbox-175308@kernel.org> (raw)
In-Reply-To: <20261017052856.3570063-1-sunnytiwari@google.com>

> On IRDMA_GEN_3+ devices, CQP operations can complete in two stages:
> Stage-1 on the CCQ acknowledges receipt and moves an entry from
> cqp->ooo_avail to cqp->ooo_pnd, while Stage-2 signals final completion
> via an AEQ event or a subsequent CCQ CQE.
> 
> In irdma_sc_ccq_get_cqe_info(), Stage-1 processing advances
> cqp->sq_ring.tail so the SQ descriptor slot can be reused once consumed
> by hardware, whereas cqp->completed_ops is only incremented on Stage-2.
> Because irdma_cqp_ring_full() only checks cqp->sq_ring, a burst of
> backlogged commands in dev->cqp_cmd_head allows irdma_process_bh() to
> submit more concurrent in-flight CQP commands than the maximum supported
> limit (cqp->sq_size - 1) while earlier commands await Stage-2. This
> causes CQP completions to be lost and synchronous waiters to time out
> with -ETIMEDOUT (-110).
> 
> Fix this by:
>   - Updating irdma_cqp_ring_full() to bound total in-flight CQP
>     operations (cqp->requested_ops - cqp->completed_ops) to
>     (cqp->sq_size - 1).
>   - Calling irdma_process_bh() at the end of irdma_process_ae_def_cmpl()
>     so backlogged commands are drained after Stage-2 AEQ completions
>     increment cqp->completed_ops and free in-flight capacity.
> 
> Fixes: c7db0abe5f2b ("RDMA/irdma: Add GEN3 CQP support with deferred completions")
> Assisted-by: Gemini
> Signed-off-by: Sunny Tiwari <sunnytiwari@google.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261017052856.3570063-1-sunnytiwari@google.com?part=1


      reply	other threads:[~2026-10-17  5:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-17  5:28 [PATCH] RDMA/irdma: Bound in-flight CQP ops across deferred completions Sunny Tiwari
2026-10-17  5:33 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-175308@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=sunnytiwari@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox