From: Long Li <longli@microsoft.com>
To: Konstantin Taranov <kotaranov@linux.microsoft.com>,
Konstantin Taranov <kotaranov@microsoft.com>,
"pabeni@redhat.com" <pabeni@redhat.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
KY Srinivasan <kys@microsoft.com>,
"edumazet@google.com" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"davem@davemloft.net" <davem@davemloft.net>,
Dexuan Cui <decui@microsoft.com>,
"wei.liu@kernel.org" <wei.liu@kernel.org>,
"jgg@ziepe.ca" <jgg@ziepe.ca>,
"leon@kernel.org" <leon@kernel.org>
Cc: "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: RE: [PATCH rdma-next v2 1/3] RDMA/mana_ib: Access remote atomic for MRs
Date: Wed, 16 Apr 2025 18:02:28 +0000 [thread overview]
Message-ID: <SA6PR21MB4231BC133C6EBAAADB6CFC59CEBD2@SA6PR21MB4231.namprd21.prod.outlook.com> (raw)
In-Reply-To: <1744621234-26114-2-git-send-email-kotaranov@linux.microsoft.com>
> Subject: [PATCH rdma-next v2 1/3] RDMA/mana_ib: Access remote atomic for
> MRs
>
> From: Konstantin Taranov <kotaranov@microsoft.com>
>
> Add IB_ACCESS_REMOTE_ATOMIC to the valid flags for MRs and use the
> corresponding flag bit during MR creation in the HW.
>
> Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
> ---
> drivers/infiniband/hw/mana/mr.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/infiniband/hw/mana/mr.c b/drivers/infiniband/hw/mana/mr.c
> index f99557e..e4a9f53 100644
> --- a/drivers/infiniband/hw/mana/mr.c
> +++ b/drivers/infiniband/hw/mana/mr.c
> @@ -5,8 +5,8 @@
>
> #include "mana_ib.h"
>
> -#define VALID_MR_FLAGS \
> - (IB_ACCESS_LOCAL_WRITE | IB_ACCESS_REMOTE_WRITE |
> IB_ACCESS_REMOTE_READ)
> +#define VALID_MR_FLAGS (IB_ACCESS_LOCAL_WRITE |
> IB_ACCESS_REMOTE_WRITE | IB_ACCESS_REMOTE_READ |\
> + IB_ACCESS_REMOTE_ATOMIC)
>
> #define VALID_DMA_MR_FLAGS (IB_ACCESS_LOCAL_WRITE)
>
> @@ -24,6 +24,9 @@ mana_ib_verbs_to_gdma_access_flags(int access_flags)
> if (access_flags & IB_ACCESS_REMOTE_READ)
> flags |= GDMA_ACCESS_FLAG_REMOTE_READ;
>
> + if (access_flags & IB_ACCESS_REMOTE_ATOMIC)
> + flags |= GDMA_ACCESS_FLAG_REMOTE_ATOMIC;
> +
> return flags;
> }
>
> --
> 2.43.0
next prev parent reply other threads:[~2025-04-16 18:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-14 9:00 [PATCH rdma-next v2 0/3] RDMA/mana_ib: extend MR support Konstantin Taranov
2025-04-14 9:00 ` [PATCH rdma-next v2 1/3] RDMA/mana_ib: Access remote atomic for MRs Konstantin Taranov
2025-04-16 18:02 ` Long Li [this message]
2025-04-14 9:00 ` [PATCH rdma-next v2 2/3] RDMA/mana_ib: support of the zero based MRs Konstantin Taranov
2025-04-16 18:09 ` Long Li
2025-04-14 9:00 ` [PATCH rdma-next v2 3/3] RDMA/mana_ib: Add support of 4M, 1G, and 2G pages Konstantin Taranov
2025-04-16 18:31 ` Long Li
2025-04-20 10:36 ` [PATCH rdma-next v2 0/3] RDMA/mana_ib: extend MR support Leon Romanovsky
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=SA6PR21MB4231BC133C6EBAAADB6CFC59CEBD2@SA6PR21MB4231.namprd21.prod.outlook.com \
--to=longli@microsoft.com \
--cc=davem@davemloft.net \
--cc=decui@microsoft.com \
--cc=edumazet@google.com \
--cc=haiyangz@microsoft.com \
--cc=jgg@ziepe.ca \
--cc=kotaranov@linux.microsoft.com \
--cc=kotaranov@microsoft.com \
--cc=kuba@kernel.org \
--cc=kys@microsoft.com \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=wei.liu@kernel.org \
/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
all inboxes | Powered by JetHome®