From: Leon Romanovsky <leon@kernel.org>
To: Konstantin Taranov <kotaranov@linux.microsoft.com>
Cc: kotaranov@microsoft.com, shirazsaleem@microsoft.com,
longli@microsoft.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH rdma-next v2 1/1] RDMA/mana_ib: memory windows
Date: Mon, 30 Mar 2026 14:58:10 +0300 [thread overview]
Message-ID: <20260330115810.GU814676@unreal> (raw)
In-Reply-To: <20260318172323.1416803-1-kotaranov@linux.microsoft.com>
On Wed, Mar 18, 2026 at 10:23:23AM -0700, Konstantin Taranov wrote:
> From: Konstantin Taranov <kotaranov@microsoft.com>
>
> Implement .alloc_mw() and .dealloc_mw() for mana device.
>
> Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
> ---
> v2: fixed comments. Cleaned up the use of mana_gd_send_request()
> drivers/infiniband/hw/mana/device.c | 3 ++
> drivers/infiniband/hw/mana/mana_ib.h | 8 +++++
> drivers/infiniband/hw/mana/mr.c | 53 +++++++++++++++++++++++++++-
> include/net/mana/gdma.h | 5 +++
> 4 files changed, 68 insertions(+), 1 deletion(-)
<...>
> +static int mana_ib_gd_create_mw(struct mana_ib_dev *dev, struct mana_ib_pd *pd, struct ib_mw *ibmw)
> +{
> + struct mana_ib_mw *mw = container_of(ibmw, struct mana_ib_mw, ibmw);
> + struct gdma_context *gc = mdev_to_gc(dev);
> + struct gdma_create_mr_response resp = {};
> + struct gdma_create_mr_request req = {};
> + int err;
> +
> + mana_gd_init_req_hdr(&req.hdr, GDMA_CREATE_MR, sizeof(req), sizeof(resp));
> + req.pd_handle = pd->pd_handle;
Both sashiko, which runs on Gemnini https://sashiko.dev/#/patchset/20260318172323.1416803-1-kotaranov@linux.microsoft.com
and my local claude checks pointed to the same area of the code:
25 > + mana_gd_init_req_hdr(&req.hdr, GDMA_CREATE_MR, sizeof(req), sizeof(resp));
26 > + req.pd_handle = pd->pd_handle;
27
28 mana_gd_init_req_hdr() sets msg_version to GDMA_MESSAGE_V1.
29 mana_ib_gd_create_mr() explicitly upgrades this to GDMA_MESSAGE_V2
30 for all GDMA_CREATE_MR requests, regardless of mr_type:
31
32 mana_ib_gd_create_mr() {
33 mana_gd_init_req_hdr(&req.hdr, GDMA_CREATE_MR, ...);
34 req.hdr.req.msg_version = GDMA_MESSAGE_V2;
35 ...
36 }
37
38 Is it intentional that mana_ib_gd_create_mw() sends GDMA_CREATE_MR
39 at GDMA_MESSAGE_V1 rather than GDMA_MESSAGE_V2?
Thanks
prev parent reply other threads:[~2026-03-30 11:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-18 17:23 [PATCH rdma-next v2 1/1] RDMA/mana_ib: memory windows Konstantin Taranov
2026-03-25 17:14 ` Long Li
2026-03-30 11:58 ` Leon Romanovsky [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=20260330115810.GU814676@unreal \
--to=leon@kernel.org \
--cc=jgg@ziepe.ca \
--cc=kotaranov@linux.microsoft.com \
--cc=kotaranov@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=longli@microsoft.com \
--cc=shirazsaleem@microsoft.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