Skip to content
Commit 1f5c23e2 authored by Arthur Kepner's avatar Arthur Kepner Committed by Roland Dreier
Browse files

IB/mthca: Use mmiowb after doorbell ring



We discovered a problem when running IPoIB applications on multiple
CPUs on an Altix system. Many messages such as:

ib_mthca 0002:01:00.0: SQ 000014 full (19941644 head, 19941707 tail, 64 max, 0 nreq)

appear in syslog, and the driver wedges up.

Apparently this is because writes to the doorbells from different CPUs
reach the device out of order. The following patch adds mmiowb() calls
after doorbell rings to ensure the doorbell writes are ordered.

Signed-off-by: default avatarArthur Kepner <akepner@sgi.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 6ef93ddd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment