android_kernel_xiaomi_sm8350/drivers/infiniband/hw
Steve Wise 1973e8b8ed RDMA/cxgb4: Avoid false GTS CIDX_INC overflows
The T4 IQ hw design assumes CIDX_INC credits will be returned on a
regular basis and always before the CIDX counter crosses over the PIDX
counter.  For RDMA CQs, however, returning CIDX_INC credits is only
needed and desired when and if the CQ is armed for notification.  This
can lead to a GTS write returning credits that causes the HW to reject
the credit update because it causes CIDX to pass PIDX.  Once this
happens, the CIDX/PIDX counters get out of whack and an application
can miss a notification and get stuck blocked awaiting a notification.

To avoid this, we allocate the HW IQ 2x times the requested size.
This seems to avoid the false overflow failures.  If we see more
issues with this, then we'll have to add code in the poll path to
return credits periodically like when the amount reaches 1/2 the queue
depth).  I would like to avoid this as it adds a PCI write transaction
for applications that never arm the CQ (like most MPIs).

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2010-07-06 14:04:04 -07:00
..
amso1100 IB/core: Allow device-specific per-port sysfs files 2010-05-21 10:34:44 -07:00
cxgb3 IB/core: Allow device-specific per-port sysfs files 2010-05-21 10:34:44 -07:00
cxgb4 RDMA/cxgb4: Avoid false GTS CIDX_INC overflows 2010-07-06 14:04:04 -07:00
ehca ehca: convert cpu notifier to return encapsulate errno value 2010-05-27 09:12:48 -07:00
ipath IB/ipath: Remove support for QLogic PCIe QLE devices 2010-05-23 22:14:25 -07:00
mlx4 IB/core: Allow device-specific per-port sysfs files 2010-05-21 10:34:44 -07:00
mthca IB/core: Allow device-specific per-port sysfs files 2010-05-21 10:34:44 -07:00
nes Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband 2010-05-25 12:05:17 -07:00
qib IB/qib: Remove DCA support until feature is finished 2010-05-27 11:04:48 -07:00