RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1545248 - libbnxt_re: ib_send_lat tests fails in event mode
Summary: libbnxt_re: ib_send_lat tests fails in event mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rdma-core
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.5
Assignee: Jarod Wilson
QA Contact: Mike Stowell
URL:
Whiteboard:
Depends On:
Blocks: 1442258
TreeView+ depends on / blocked
 
Reported: 2018-02-14 13:24 UTC by Selvin Xavier (Broadcom)
Modified: 2018-04-10 17:54 UTC (History)
5 users (show)

Fixed In Version: rdma-core-15-6.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 17:53:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0954 0 None None None 2018-04-10 17:54:15 UTC

Description Selvin Xavier (Broadcom) 2018-02-14 13:24:45 UTC
Description of problem:

ib_send_lat tests fails while testing with "-e" option. It is working fine with the default options of the command.

Version-Release number of selected component (if applicable):


How reproducible:

Always

Steps to Reproduce:
1. Load bnxt_en and bnxt_re driver 
2. Install rdma-core 
3. Run following command on server
   ib_send_lat -d bnxt_re0 -x 2 -e

4. Run following command on client

 ib_send_lat -d bnxt_re0 -x 2 -e <server ip>

Actual results:

Test fails with following error
run_iter_lat: Couldn't post send: scnt=3, err=Cannot allocate memory

Expected results:

Test should pass.

Additional info:

Comment 2 Selvin Xavier (Broadcom) 2018-02-14 13:26:25 UTC
The issue seen with ib_read_lat also.

Comment 3 Selvin Xavier (Broadcom) 2018-02-14 14:04:41 UTC
The issue is observed mostly because of the assumption by ib_*_lat tests. After posting a WQE to the SQ, even if the interrupt is generated on RQ, the application assumes that the interrupt is on SQ CQ and starts polling SQ CQ. 

bnxt_re hardware will always generate an extra interrupt if the sequence is as follows.

1. wait for interrupt
2. In the interrupt handling, ARM CQ first
3. Reap the CQEs from the CQ

In case of ib_read_lat, RQ receives the interrupt first. The interrupt handling arms RQ CQ first. This generates a pending interrupt on RQ CQ. Then the polling will be done for the first interrurpt (RQ CQ). The application posts to SQ. The app expect an interrupt on SQ CQ now. But the previous pending interrupt on RQ is scheduled and the waiting app polls the SQ CQ and sometimes doesn't find any CQE (CQE is not generated yet). 

The following patch is required to avoid the extra interrupt and test passes with the same. The details about the problem is also available in the patch description.

https://github.com/linux-rdma/rdma-core/commit/0b72e02a1fee3e383fad0aa2e7e5cf8c6a06c6bf#diff-a4ec7cf19bf17ce5aa732df8993db434

Comment 8 errata-xmlrpc 2018-04-10 17:53:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:0954


Note You need to log in before you can comment on or make changes to this bug.