From: sashiko-bot@kernel.org
To: "Konstantin Taranov" <kotaranov@linux.microsoft.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-next v7 6/9] RDMA/mana_ib: Post send and memory-management WRs on RC QPs
Date: Mon, 02 Nov 2026 16:42:09 +0000 [thread overview]
Message-ID: <sashiko-outbox-193761@kernel.org> (raw)
In-Reply-To: <20261102162505.501853-7-kotaranov@linux.microsoft.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] RDMA/mana_ib: __le32 to u32 Sparse type mismatch in mana_ib_post_sq()
--
commit 8ccaec72f638cf8641d6fe111aeda1bd2485a4f2
Author: Konstantin Taranov <kotaranov@microsoft.com>
RDMA/mana_ib: Post send and memory-management WRs on RC QPs
This commit implements send work request posting for RC QPs, routing
communication WRs to the send queue and memory management WRs to the memory
management queue. It also advertises IB_DEVICE_MEM_MGT_EXTENSIONS on
adapters supporting extended WQEs.
> diff --git a/drivers/infiniband/hw/mana/wr.c b/drivers/infiniband/hw/mana/wr.c
> index 5d42af91fce4a..d5dec02aa70a7 100644
> --- a/drivers/infiniband/hw/mana/wr.c
> +++ b/drivers/infiniband/hw/mana/wr.c
[ ... ]
> @@ -224,6 +289,294 @@ static int mana_ib_post_send_ud(struct mana_ib_qp *qp, const struct ib_send_wr *
> return err;
> }
>
> +static int mana_ib_post_sq(struct mana_ib_qp *qp, const struct ib_send_wr *wr)
> +{
[ ... ]
> + switch (wr->opcode) {
> + case IB_WR_SEND_WITH_INV:
> + send_oob.rc_send.invalidate_key = wr->ex.invalidate_rkey;
> + wqe_req.flags |= GDMA_WR_CHECK_SN;
> + break;
> + case IB_WR_SEND_WITH_IMM:
> + send_oob.rc_send.immediate = cpu_to_le32(be32_to_cpu(wr->ex.imm_data));
> + fallthrough;
> + case IB_WR_SEND:
> + wqe_req.flags |= GDMA_WR_CHECK_SN;
> + break;
> + case IB_WR_RDMA_WRITE_WITH_IMM:
> + send_oob.immediate_ext = cpu_to_le32(be32_to_cpu(wr->ex.imm_data));
[Severity: Low]
In mana_ib_post_sq(), both IB_WR_SEND_WITH_IMM and IB_WR_RDMA_WRITE_WITH_IMM
assign the restricted __le32 value returned by cpu_to_le32() to
send_oob.rc_send.immediate and send_oob.immediate_ext, which are declared as
plain u32 in struct rdma_send_oob in drivers/infiniband/hw/mana/mana_ib.h:
union {
u32 immediate;
u32 invalidate_key;
} rc_send;
...
union {
u32 immediate_ext;
When building with C=1, does this trigger Sparse endianness type-mismatch
warnings? Should those fields be annotated as __le32, or assigned using
be32_to_cpu(wr->ex.imm_data) to match the host-endian u32 fields in
struct rdma_send_oob?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261102162505.501853-1-kotaranov@linux.microsoft.com?part=6
next prev parent reply other threads:[~2026-11-02 16:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 16:24 [PATCH rdma-next v7 0/9] RDMA/mana_ib: Add kernel RC and fast registration support Konstantin Taranov
2026-11-02 16:24 ` [PATCH rdma-next v7 1/9] RDMA/mana_ib: Allocate and map fast-registration MRs Konstantin Taranov
2026-11-02 16:34 ` sashiko-bot
2026-11-02 16:24 ` [PATCH rdma-next v7 2/9] RDMA/mana: Create and destroy kernel RC QPs Konstantin Taranov
2026-11-02 16:46 ` sashiko-bot
2026-11-02 16:24 ` [PATCH rdma-next v7 3/9] net/mana: Extend GDMA encoding for new RDMA WQEs Konstantin Taranov
2026-11-02 16:35 ` sashiko-bot
2026-11-02 16:25 ` [PATCH rdma-next v7 4/9] RDMA/mana_ib: Maintain kernel RC QP state Konstantin Taranov
2026-11-02 16:33 ` sashiko-bot
2026-11-02 16:25 ` [PATCH rdma-next v7 5/9] RDMA/mana_ib: Post receive WRs on kernel RC QPs Konstantin Taranov
2026-11-02 16:34 ` sashiko-bot
2026-11-02 16:25 ` [PATCH rdma-next v7 6/9] RDMA/mana_ib: Post send and memory-management WRs on " Konstantin Taranov
2026-11-02 16:42 ` sashiko-bot [this message]
2026-11-02 16:25 ` [PATCH rdma-next v7 7/9] RDMA/mana_ib: Poll RC completions using PSN and FSN progress Konstantin Taranov
2026-11-02 16:42 ` sashiko-bot
2026-11-02 16:25 ` [PATCH rdma-next v7 8/9] RDMA/mana_ib: Flush and notify CQs when kernel QPs enter ERR Konstantin Taranov
2026-11-02 16:45 ` sashiko-bot
2026-11-02 16:25 ` [PATCH rdma-next v7 9/9] RDMA/mana_ib: Handle error CQEs for kernel QPs Konstantin Taranov
2026-11-02 17:07 ` sashiko-bot
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-193761@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.