android_kernel_xiaomi_sm8350/drivers/infiniband/hw/cxgb3
Steve Wise e998f245c4 RDMA/cxgb3: Doorbell overflow avoidance and recovery
T3 hardware doorbell FIFO overflows can cause application stalls due
to lost doorbell ring events.  This has been seen when running large
NP IMB alltoall MPI jobs.  The T3 hardware supports an xon/xoff-type
flow control mechanism to help avoid overflowing the HW doorbell FIFO.

This patch uses these interrupts to disable RDMA QP doorbell rings
when we near an overflow condition, and then turn them back on (and
ring all the active QP doorbells) when when the doorbell FIFO empties
out.  In addition if an doorbell ring is dropped by the hardware, the
code will now recover.

Design:

cxgb3:
- enable these DB interrupts
- in the interrupt handler, schedule work tasks to call the ULPs event
  handlers with the new events.
- ring all the qset txqs when an overflow is detected.

iw_cxgb3:
- disable db ringing on all active qps when we get the DB_FULL event
- enable db ringing on all active qps and ring all active dbs when we get
  the DB_EMPTY event
- On DB_DROP event:
       - disable db rings in the event handler
       - delay-schedule a work task which rings and enables the dbs on
         all active qps.
- in post_send and post_recv logic, don't ring the db if it's disabled.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2010-02-24 10:40:28 -08:00
..
cxio_dbg.c
cxio_hal.c RDMA/cxgb3: Remove BUG_ON() on CQ rearm failure 2010-02-11 15:40:29 -08:00
cxio_hal.h kfifo: move struct kfifo in place 2009-12-22 14:17:55 -08:00
cxio_resource.c kfifo: fix warn_unused_result 2009-12-22 14:17:56 -08:00
cxio_resource.h
cxio_wr.h RDMA/cxgb3: Doorbell overflow avoidance and recovery 2010-02-24 10:40:28 -08:00
iwch_cm.c RDMA/cxgb3: Wake up any waiters on peer close/abort 2009-09-05 20:22:38 -07:00
iwch_cm.h RDMA/cxgb3: Don't free endpoints early 2009-09-05 20:22:38 -07:00
iwch_cq.c
iwch_ev.c RDMA/cxgb3: Connection termination fixes 2009-02-10 16:38:57 -08:00
iwch_mem.c RDMA/cxgb3: Don't ignore insert_handle() failures 2009-09-09 11:25:55 -07:00
iwch_provider.c headers: remove sched.h from interrupt.h 2009-10-11 11:20:58 -07:00
iwch_provider.h
iwch_qp.c RDMA/cxgb3: Doorbell overflow avoidance and recovery 2010-02-24 10:40:28 -08:00
iwch_user.h
iwch.c RDMA/cxgb3: Doorbell overflow avoidance and recovery 2010-02-24 10:40:28 -08:00
iwch.h RDMA/cxgb3: Doorbell overflow avoidance and recovery 2010-02-24 10:40:28 -08:00
Kconfig
Makefile
tcb.h