Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Konstantin Taranov" <kotaranov@linux.microsoft.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-next v11 9/9] RDMA/mana_ib: Handle error CQEs for kernel QPs
Date: Thu, 12 Nov 2026 09:17:16 +0000	[thread overview]
Message-ID: <sashiko-outbox-210859@kernel.org> (raw)
In-Reply-To: <20261112084716.1483342-10-kotaranov@linux.microsoft.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] RDMA/mana_ib: wrong WC status in vendor_error_to_wc_error()
--

commit 3890146d1e1c2dc4555e62f3e8c6c195602b6f98
Author: Konstantin Taranov <kotaranov@microsoft.com>

RDMA/mana_ib: Handle error CQEs for kernel QPs

This commit decodes hardware error CQEs for kernel QPs, defers moving
errored QPs to the ERR state via a workqueue, and cleans up pending CQEs
when resetting or destroying kernel QPs.

> diff --git a/drivers/infiniband/hw/mana/cq.c b/drivers/infiniband/hw/mana/cq.c
> index 3d09ff5e5414c..24dca3b6e5bfc 100644
> --- a/drivers/infiniband/hw/mana/cq.c
> +++ b/drivers/infiniband/hw/mana/cq.c

[ ... ]

> @@ -37,12 +40,30 @@ static enum ib_wc_status vendor_error_to_wc_error(uint32_t vendor_error)
>  	case VENDOR_ERR_TX_ATB_WQE_ACCESS_VIOLATION:
>  	case VENDOR_ERR_TX_ATB_WQE_ADDR_RANGE:
>  	case VENDOR_ERR_TX_ATB_WQE_CONFIG_ERR:
> +	case VENDOR_ERR_TX_RDMA_ATB_CMD_MISS:
> +	case VENDOR_ERR_TX_RDMA_ATB_CMD_IDX_ERROR:
> +	case VENDOR_ERR_TX_RDMA_ATB_CMD_TAG_MISMATCH_ERROR:
> +	case VENDOR_ERR_TX_RDMA_ATB_CMD_PDID_MISMATCH_ERROR:
> +	case VENDOR_ERR_TX_RDMA_ATB_CMD_AR_ERROR:
> +	case VENDOR_ERR_TX_RDMA_ATB_CMD_PT_OVF:
> +	case VENDOR_ERR_TX_RDMA_ATB_CMD_PT_LENGHT_MISMATCH:
> +	case VENDOR_ERR_TX_RDMA_ATB_CMD_ILLEGAL_CMD:
>  	case VENDOR_ERR_RX_ATB_SGE_ADDR_RANGE:
>  	case VENDOR_ERR_RX_ATB_SGE_MISSCONFIG:
>  		return IB_WC_LOC_PROT_ERR;
>  	case VENDOR_ERR_RX_ATB_SGE_ADDR_RIGHT:
>  	case VENDOR_ERR_RX_GFID:
>  		return IB_WC_LOC_ACCESS_ERR;
> +	case VENDOR_ERR_RX_OP_REQ:
> +		return IB_WC_REM_INV_REQ_ERR;
> +	case VENDOR_ERR_RX_ATB_RKEY_MISCONFIG_ERR:
> +	case VENDOR_ERR_RX_ATB_RKEY_ADDR_RIGHT:
> +	case VENDOR_ERR_RX_ATB_RKEY_ADDR_RANGE:
> +	case VENDOR_ERR_RX_REMOTE_ACCESS_NAK:
> +		return IB_WC_REM_ACCESS_ERR;
> +	case VENDOR_ERR_RX_INVALID_REQ_NAK:
> +	case VENDOR_ERR_RX_REMOTE_OP_ERR_NAK:
> +		return IB_WC_REM_OP_ERR;

[Severity: Medium]
Should VENDOR_ERR_RX_INVALID_REQ_NAK return IB_WC_REM_INV_REQ_ERR instead
of IB_WC_REM_OP_ERR?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261112084716.1483342-1-kotaranov@linux.microsoft.com?part=9

      reply	other threads:[~2026-11-12  9:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-12  8:47 [PATCH rdma-next v11 0/9] RDMA/mana_ib: Add kernel RC and fast registration support Konstantin Taranov
2026-11-12  8:47 ` [PATCH rdma-next v11 1/9] RDMA/mana_ib: Allocate and map fast-registration MRs Konstantin Taranov
2026-11-12  8:59   ` sashiko-bot
2026-11-12  8:47 ` [PATCH rdma-next v11 2/9] RDMA/mana: Create and destroy kernel RC QPs Konstantin Taranov
2026-11-12  9:05   ` sashiko-bot
2026-11-12  8:47 ` [PATCH rdma-next v11 3/9] net/mana: Extend GDMA encoding for new RDMA WQEs Konstantin Taranov
2026-11-12  9:02   ` sashiko-bot
2026-11-12  8:47 ` [PATCH rdma-next v11 4/9] RDMA/mana_ib: Maintain kernel RC QP state Konstantin Taranov
2026-11-12  8:54   ` sashiko-bot
2026-11-12  8:47 ` [PATCH rdma-next v11 5/9] RDMA/mana_ib: Post receive WRs on kernel RC QPs Konstantin Taranov
2026-11-12  8:55   ` sashiko-bot
2026-11-12  8:47 ` [PATCH rdma-next v11 6/9] RDMA/mana_ib: Post send and memory-management WRs on " Konstantin Taranov
2026-11-12  9:00   ` sashiko-bot
2026-11-12  8:47 ` [PATCH rdma-next v11 7/9] RDMA/mana_ib: Poll RC completions using PSN and FSN progress Konstantin Taranov
2026-11-12  9:13   ` sashiko-bot
2026-11-12  8:47 ` [PATCH rdma-next v11 8/9] RDMA/mana_ib: Flush and notify CQs when kernel QPs enter ERR Konstantin Taranov
2026-11-12  9:15   ` sashiko-bot
2026-11-12  8:47 ` [PATCH rdma-next v11 9/9] RDMA/mana_ib: Handle error CQEs for kernel QPs Konstantin Taranov
2026-11-12  9:17   ` 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-210859@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=kotaranov@linux.microsoft.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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