From: "Yang, Xiao/杨 晓" <yangx.jy@fujitsu.com>
To: Jason Gunthorpe <jgg@ziepe.ca>, Li Zhijian <lizhijian@fujitsu.com>
Cc: "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
"leon@kernel.org" <leon@kernel.org>,
"rpearsonhpe@gmail.com" <rpearsonhpe@gmail.com>,
"zyjzyj2000@gmail.com" <zyjzyj2000@gmail.com>
Subject: Re: [RESEND PATCH v5 1/2] RDMA/rxe: Support RDMA Atomic Write operation
Date: Thu, 29 Sep 2022 13:36:41 +0800 [thread overview]
Message-ID: <54971511-321b-65a6-a0d1-bb99bb719663@fujitsu.com> (raw)
In-Reply-To: <24380d05-1540-7420-dd64-d4b2b363ede0@fujitsu.com>
On 2022/9/29 11:58, Yang, Xiao/杨 晓 wrote:
> On 2022/9/27 21:17, Jason Gunthorpe wrote:
>> On Tue, Sep 27, 2022 at 04:18:52PM +0800, Li Zhijian wrote:
>>> Hi Yang
>>>
>>> I wonder if you need to do something if a user register MR with
>>> ATOMIC_WRITE to non-rxe device, something like in my flush:
>>
>> This makes sense..
>
> Hi Zhijian, Jason
>
> Agreed. I will add the check in ib_check_mr_access().
Hi Zhijian, Jason,
Sorry for the rough reply.
After reading the IBTA Spec A19.4.5.3 again, it seems not suitable for
Atomic Write to do the similar check in ib_check_mr_access().
Atomic Write uses the original IB_ACCESS_REMOTE_WRITE flag during memory
registration. (In other words, it doesn't introduce a new
IB_ACCESS_REMOTE_ATOMIC_WRITE flag)
In this case, we should not return -EINVAL when IB_ACCESS_REMOTE_WRITE
is specified and ib_dev->attrs.device_cap_flags doesn't support
IB_DEVICE_ATOMIC_WRITE.
Best Regards,
Xiao Yang
>
> Best Regards,
> Xiao Yang
>>
>> Jason
next prev parent reply other threads:[~2022-09-29 5:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-08 4:02 [RESEND PATCH v5 0/2] RDMA/rxe: Add RDMA Atomic Write operation yangx.jy
2022-07-08 4:02 ` [RESEND PATCH v5 1/2] RDMA/rxe: Support " yangx.jy
2022-09-23 22:22 ` Jason Gunthorpe
2022-09-26 6:55 ` Yang, Xiao/杨 晓
2022-10-06 7:53 ` Yang, Xiao/杨 晓
2022-10-14 16:00 ` Jason Gunthorpe
2022-10-20 13:25 ` Yang, Xiao/杨 晓
2022-10-24 17:02 ` Jason Gunthorpe
2022-09-27 8:18 ` Li Zhijian
2022-09-27 13:17 ` Jason Gunthorpe
2022-09-29 3:58 ` Yang, Xiao/杨 晓
2022-09-29 5:36 ` Yang, Xiao/杨 晓 [this message]
2022-07-08 4:02 ` [RESEND PATCH v5 2/2] RDMA/rxe: Add RDMA Atomic Write attribute for rxe device yangx.jy
2022-08-04 7:30 ` [RESEND PATCH v5 0/2] RDMA/rxe: Add RDMA Atomic Write operation yangx.jy
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=54971511-321b-65a6-a0d1-bb99bb719663@fujitsu.com \
--to=yangx.jy@fujitsu.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=lizhijian@fujitsu.com \
--cc=rpearsonhpe@gmail.com \
--cc=zyjzyj2000@gmail.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