From: Zhu Yanjun <yanjun.zhu@linux.dev>
To: Evan Green <evgreen@meta.com>, Zhu Yanjun <zyjzyj2000@gmail.com>
Cc: Wei Lin Guay <wguay@meta.com>, Jason Gunthorpe <jgg@ziepe.ca>,
Leon Romanovsky <leon@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH] RDMA/rxe: Generate async error for r_key violations
Date: Sat, 21 Feb 2026 02:28:09 -0800 [thread overview]
Message-ID: <b244fc9b-6161-4353-8eaa-914644c9c31c@linux.dev> (raw)
In-Reply-To: <B810FD4C-0D5B-4FAB-A6C1-6201CF44E829@meta.com>
在 2026/2/20 9:59, Evan Green 写道:
> Hi Yanjun,
>
> > On 2/12/26, 11:48 AM, "yanjun.zhu" <yanjun.zhu@linux.dev <mailto:yanjun.zhu@linux.dev>> wrote:
>>
>> On 2/12/26 8:43 AM, Evan Green wrote:
>>> Table 63 of the IBTA spec lists R_Key violations as a class C
>>> error. 9.9.3.1.3 Responder Class C Fault Behavior indicates an
>>> affiliated asynchronous error should be generated at the responder
>>> if the error can be associated to a QP but not a particular RX WQE.
>>
>> This paragraph should be the descriptions in the commit log.
>>
>>
>> "C9-222.1.1: For an HCA responder using Reliable Connection service, for
>> a Class C responder side error, the error shall be reported to the requester
>> by generating the appropriate NAK code as specified in Table 63 Re-
>> sponder Error Behavior Summary on page 448. If the error can be related
>> to a particular QP but cannot be related to a particular WQE on that re-
>> ceive queue (e.g. the error occurred while executing an RDMA Write Re-
>> quest without immediate data), the error shall be reported to the
>> responder’s client as an Affiliated Asynchronous error. See Section
>> 10.10.2.3 Asynchronous Errors on page 576 for details. If the error can be
>> related to a particular WQE on a given receive queue, the QP shall be
>> placed into the error state and the error shall be reported to the re-
>> sponder’s client as a Completion error. See Section 10.10.2.2 Completion
>> Errors on page 575."
> Apologies for the delayed response, I'm having an awful time setting up a mail client with proper formatting.
>
> Sure, I'll add this and send a v2.
>
>>
>> In this commit, a new asynchrounous event
>> RESPST_ERR_RKEY_VIOLATION_EVENT is introduced and implemented based on
>> 9.9.3.1.3. It is not a bug fix. As such, no FIXES tag.
>>
>>
>> I am fine with this. I am just wondering if this similar feature has
>> already been implemented in iWARP driver or not.
> I... can't tell, kind of? I see three places where QP_ACCESS_ERR events are generated in siw. They do look like R_Key violation scenarios, though I don’t see any any spots where SIW_WC_REM_ACCESS_ERR is produced as an error code.
Thank you very much. I’ve also looked into the iWARP driver and have
similar thoughts to yours. If you’re interested in working on the iWARP
driver, you’re welcome to implement this feature there as well—it’s
entirely up to you. I simply hope that both iWARP and RXE continue to
improve over time.
Thanks,
Yanjun.Zhu
>
>>
>> Thanks,
>> Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev <mailto:yanjun.zhu@linux.dev>>
> Thank you!
> -Evan
>
>
>
>
--
Best Regards,
Yanjun.Zhu
prev parent reply other threads:[~2026-02-21 10:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-12 16:43 [PATCH] RDMA/rxe: Generate async error for r_key violations Evan Green
2026-02-12 19:47 ` yanjun.zhu
2026-02-20 17:59 ` Evan Green
2026-02-21 10:28 ` Zhu Yanjun [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=b244fc9b-6161-4353-8eaa-914644c9c31c@linux.dev \
--to=yanjun.zhu@linux.dev \
--cc=evgreen@meta.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=wguay@meta.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