Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: Bob Pearson <rpearsonhpe@gmail.com>
To: edwards@nvidia.com, jgg@nvidia.com, linux-rdma@vger.kernel.org
Subject: Re: modify srq pyverbs test (new?) failing for the rxe driver
Date: Tue, 24 Oct 2023 12:47:59 -0500	[thread overview]
Message-ID: <99cafadf-a7c5-4217-9162-38fb6f8b56bf@gmail.com> (raw)
In-Reply-To: <401221fd-b41d-4db9-be22-b1af17b0d456@gmail.com>



On 10/23/23 17:47, Bob Pearson wrote:
> Edward,
> 
> There is a test which may be new since this failure didn't happen
> before. Modify srq tries to set max_wr to 4094 but the rxe driver
> rounds this up to 2^n-1 or 4095. My understanding of the IBA
> spec is that queue sizes can be set larger than requested.
> Also this same test tries to change max_sge using the same
> MAX_WR mask bit. There is no mention (as far as I can recall)
> in the IBA spec of being able to change the max_sge setting.
> 
> Is this really the correct behavior?
> 
> Bob Pearson

Just for reference

11.2.3.3 MODIFY SHARED RECEIVE QUEUE
Description:
   Modifies the attributes of an SRQ for the specified HCA.
   If any of the modify attributes are invalid, none of the attributes
   shall be modified.
   Input Modifiers:
     •HCA handle.
     •SRQ handle.
     •The SRQ attributes to modify and their new values. The SRQ at-
     tributes that can be modified after the SRQ has been created are:
       •The maximum number of outstanding Work Requests the
       Consumer expects to submit to the Shared Receive Queue, if
       resizing of the SRQ is supported by the HCA.

[It does *not* include max_sge.]

       •SRQ Limit. If the SRQ Limit is greater than zero, then it shall
       be armed upon returning from this verb.
   Output Modifiers:
     •The actual number of outstanding Work Requests supported on
     the Shared Receive Queue. If an error is not returned, this is
     guaranteed to be greater than or equal to the number requested.
     (This may require the Consumer to increase the size of the CQ.)

[Unfortunately the rdma verbs API does not support returning the
new value of max_wr. You have to call ib_query_srq to get the new
value which does *not* have to equal the requested size.]

     •Verb Results:
     •Operation completed successfully.
     •Insufficient resources to complete request.
     •Invalid HCA handle.
     •Invalid SRQ handle.
     •SRQ is in the Error State.
     •HCA does not support resizing SRQ.
     •Maximum number of Work Requests requested exceeds HCA
     capability.
     •SRQ Limit exceeds maximum number of Work Requests al-
     lowed on the SRQ.
     •More outstanding entries on WQ than size specified.
     •HCA does not support SRQ.

[The test_modify_srq just seems incorrect.]

       reply	other threads:[~2023-10-24 17:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <401221fd-b41d-4db9-be22-b1af17b0d456@gmail.com>
2023-10-24 17:47 ` Bob Pearson [this message]
2023-10-25 11:29   ` modify srq pyverbs test (new?) failing for the rxe driver Edward Srouji
2023-10-25 15:49     ` Bob Pearson
2023-10-26  2:12     ` Bob Pearson

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=99cafadf-a7c5-4217-9162-38fb6f8b56bf@gmail.com \
    --to=rpearsonhpe@gmail.com \
    --cc=edwards@nvidia.com \
    --cc=jgg@nvidia.com \
    --cc=linux-rdma@vger.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