Skip to content

Doorbell drop recovery for T4 iWARP

Vipul Pandya linux-rdma netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 of 10 patches 9 repliesIn review

8 of 10 patches are in this archive. The cover letter announces 10.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/10cxgb4: DB Drop Recovery for RDMA and LLD queues.drivers/net/ethernet/chelsio/cxgb4/t4_hw.c drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h+63 -110 replies
3/10cxgb4: DB Drop Recovery for RDMA and LLD queues.drivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h +3 more+279 -420 replies
5/10RDMA/cxgb4: Add DB Overflow Avoidance.drivers/infiniband/hw/cxgb4/device.c drivers/infiniband/hw/cxgb4/iw_cxgb4.h drivers/infiniband/hw/cxgb4/qp.c+161 -111 reply
6/10RDMA/cxgb4: disable interrupts in c4iw_ev_dispatch().drivers/infiniband/hw/cxgb4/cm.c drivers/infiniband/hw/cxgb4/ev.c drivers/infiniband/hw/cxgb4/iw_cxgb4.h+9 -60 replies
7/10RDMA/cxgb4: DB Drop Recovery for RDMA and LLD queues.drivers/infiniband/hw/cxgb4/device.c drivers/infiniband/hw/cxgb4/iw_cxgb4.h drivers/infiniband/hw/cxgb4/qp.c +1 more+259 -128 replies
8/10RDMA/cxgb4: Use vmalloc for debugfs qp dump. Allows dumping thousands of qps.drivers/infiniband/hw/cxgb4/cm.c drivers/infiniband/hw/cxgb4/device.c+20 -20 replies
9/10RDMA/cxgb4: remove kfifo usagedrivers/infiniband/hw/cxgb4/Makefile drivers/infiniband/hw/cxgb4/device.c drivers/infiniband/hw/cxgb4/id_table.c +4 more+203 -1500 replies
10/10RDMA/cxgb4: Add query_qp support in driver to query the qp state before flushing.drivers/infiniband/hw/cxgb4/iw_cxgb4.h drivers/infiniband/hw/cxgb4/provider.c drivers/infiniband/hw/cxgb4/qp.c+32 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] Doorbell drop recovery for T4 iWARP

This patch-series implements doorbell drop recovery for T4 iWARP driver.

In the event where DBs are dropped application can get stalled for one or more reasons. So, we recover RDMA and LLD queues in such an event.
We also take care for handling DB overflow events.

The patch-series also has some bug fixes, adds RDMA debugfs stats and removes kfifo usage for ID mangement.

The patch-series is based on linux-next, and involves changes on drivers/net/ethernet/chelsio/cxgb4 and drivers/infiniband/hw/cxgb4.

The changes on drivers/infiniband/hw/cxgb4 are dependent on the changes of drivers/net/ethernet/chelsio/cxgb4 for the T4-iWARP driver to build correctly. So, we request to merge the entire patch-series through one tree - either through Roland's tree, or through Dave Miller's tree.

Both linux-rdma and netdev are included in this post for review.

Vipul Pandya (10):
cxgb4: Detect DB FULL events and notify RDMA ULD.
cxgb4: DB Drop Recovery for RDMA and LLD queues.
cxgb4: DB Drop Recovery for RDMA and LLD queues. RDMA/cxgb4: Add debugfs rdma memory stats
RDMA/cxgb4: Add DB Overflow Avoidance.
RDMA/cxgb4: disable interrupts in c4iw_ev_dispatch(). RDMA/cxgb4: DB Drop Recovery for RDMA and LLD queues. RDMA/cxgb4: Use vmalloc for debugfs qp dump. Allows dumping thousands
of qps.
RDMA/cxgb4: remove kfifo usage
RDMA/cxgb4: Add query_qp support in driver to query the qp state
before flushing.

 drivers/infiniband/hw/cxgb4/Makefile            |    2 +-
 drivers/infiniband/hw/cxgb4/cm.c                |   23 ++-
 drivers/infiniband/hw/cxgb4/device.c            |  339 ++++++++++++++++++++++-
 drivers/infiniband/hw/cxgb4/ev.c                |    8 +-
 drivers/infiniband/hw/cxgb4/id_table.c          |  112 ++++++++
 drivers/infiniband/hw/cxgb4/iw_cxgb4.h          |  134 ++++++++--
 drivers/infiniband/hw/cxgb4/mem.c               |   21 +-
 drivers/infiniband/hw/cxgb4/provider.c          |   19 +-
 drivers/infiniband/hw/cxgb4/qp.c                |  105 +++++++-
 drivers/infiniband/hw/cxgb4/resource.c          |  180 +++++-------
 drivers/infiniband/hw/cxgb4/t4.h                |   24 ++
 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h      |   11 +
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c |  235 +++++++++++++++-
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h  |   11 +
 drivers/net/ethernet/chelsio/cxgb4/sge.c        |   22 ++-
 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c      |   62 ++++-
 drivers/net/ethernet/chelsio/cxgb4/t4_regs.h    |   53 ++++
 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h   |   28 ++
 18 files changed, 1218 insertions(+), 171 deletions(-)
 create mode 100644 drivers/infiniband/hw/cxgb4/id_table.c