Skip to content

Add support for Chelsio T5 adapter

Vipul Pandya linux-rdma linux-scsi netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest16 of 22 patches 3 repliesIn review
  2. v118 of 22 patches 0 repliesSuperseded

16 of 22 patches are in this archive. The cover letter announces 22.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/22cxgb4: Add macros, structures and inline functions for T5drivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/t4_msg.h drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h+95 -20 replies
4/22cxgb4: Dump T5 registersdrivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c+448 -40 replies
5/22cxgb4: Add T5 write combining supportdrivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c drivers/net/ethernet/chelsio/cxgb4/sge.c+102 -51 reply
6/22cxgb4: Enable doorbell drop recovery only for T4 adapterdrivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c+71 -160 replies
7/22cxgb4: Add T5 debugfs supportdrivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c drivers/net/ethernet/chelsio/cxgb4/t4_hw.c+119 -430 replies
8/22cxgb4: Add T5 PCI idsdrivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c+38 -00 replies
9/22cxgb4: Update driver version and descriptiondrivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c+2 -20 replies
11/22cxgb4vf: Add support for Chelsio T5 adapterdrivers/net/ethernet/chelsio/cxgb4vf/adapter.h drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c drivers/net/ethernet/chelsio/cxgb4vf/sge.c +2 more+73 -90 replies
12/22RDMA/cxgb4: Add Support for Chelsio T5 adapterdrivers/infiniband/hw/cxgb4/cm.c drivers/infiniband/hw/cxgb4/device.c drivers/infiniband/hw/cxgb4/iw_cxgb4.h +3 more+77 -350 replies
14/22RDMA/cxgb4: Add module_params to enable DB FC & Coalescing on T5drivers/infiniband/hw/cxgb4/device.c drivers/infiniband/hw/cxgb4/iw_cxgb4.h drivers/infiniband/hw/cxgb4/qp.c+30 -60 replies
15/22RDMA/cxgb4: Use DSGLs for fastreg and adapter memory writes for T5.drivers/infiniband/hw/cxgb4/iw_cxgb4.h drivers/infiniband/hw/cxgb4/mem.c drivers/infiniband/hw/cxgb4/qp.c +2 more+190 -360 replies
16/22RDMA/cxgb4: Map pbl buffers for dma if using DSGL.drivers/infiniband/hw/cxgb4/mem.c+23 -60 replies
18/22RDMA/cxgb4: Fix onchip queue support for T5drivers/infiniband/hw/cxgb4/qp.c+5 -80 replies
20/22csiostor: Add T5 adapter operations.drivers/scsi/csiostor/csio_hw_t5.c+397 -00 replies
21/22csiostor: Header file modifications for chip support and bug fixes.drivers/scsi/csiostor/csio_hw_chip.h drivers/scsi/csiostor/csio_lnode.h drivers/scsi/csiostor/csio_rnode.c +2 more+212 -180 replies
22/22csiostor: Cleanup chip specific operations.drivers/scsi/csiostor/Makefile drivers/scsi/csiostor/csio_hw.c drivers/scsi/csiostor/csio_hw.h +3 more+193 -5120 replies

Reviews trailers per patch

None of the 16 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSteve Wise
SeriesA-b
2/22
4/22
5/22
6/22
7/22
8/22
9/22
11/22
12/22
14/22
15/22
16/22
18/22
20/22
21/22
22/22

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net-next 00/22] Add support for Chelsio T5 adapter

Hi All,

This patch series adds support for Chelsio's T5 adapter. It also adds support for new features of T5. It adds these in cxgb4, cxgb4vf, RDMA/cxgb4 and csiostor drivers.

Chelsio's T5 asic moves the architecture into 40GbE speeds. T5 is a 10/40GbE controller with full offload support of a complete Unified Wire solution comprising NIC, Virtualization, TOE, iWARP RDMA and FCoE.

T5 supports all the offload, virtualization and switching capabilities of the existing T4 and adds some new features. The patch series does basic intialization for T5 in each driver. The patch series implements a low latency Write Combining work request path in cxgb4 and RDMA/cxgb4 driver for T5. It supports new T5 feature DSGL in RDMA/cxgb4 driver which enables direct DMA by HW to memory region PBL arrays and fast register PBL arrays from host memory. It adds support for dumping T5 registers, T5's debugfs support and enables doorbell drop recovery only for T4 in cxgb4 driver.

To facilitate addition of support in csiostor for future adapters, a new framework for adapter specific operations has been defined. Consequently, T4 and T5 specific operations are now separated into different files. One of the csiostor patches also includes common bug fixes.

We are submitting changes in all the drivers for T5 in one series since there are common changes in cxgb4 driver which are required by all the ULDs and csiostor. This way we can avoid build failures, build dependencies and ensure smooth integration.

We request to merge this patch series via David Miller's net-next tree. We are copying respective maintainers of all the drivers for reviewing the changes. Kindly let us know in case of any review comments.

We have successfully carried out networking, virtualization, iWARP and storage related stress tests on this patch series.

Thanks,
Vipul Pandya

v2: Replaced #ifdef with portable interface wmb in ring_tx_db

Arvind Bhushan (4):
csiostor: Segregate T4 adapter operations.
csiostor: Add T5 adapter operations.
csiostor: Header file modifications for chip support and bug fixes.
csiostor: Cleanup chip specific operations.

Santosh Rastapur (11):
cxgb4: Add register definations for T5
cxgb4: Add macros, structures and inline functions for T5
cxgb4: Initialize T5
cxgb4: Dump T5 registers
cxgb4: Add T5 write combining support
cxgb4: Enable doorbell drop recovery only for T4 adapter
cxgb4: Add T5 debugfs support
cxgb4: Add T5 PCI ids
cxgb4: Update driver version and description
cxgb4: Disable SR-IOV support for PF4-7 for T5
cxgb4vf: Add support for Chelsio T5 adapter

Vipul Pandya (7):
RDMA/cxgb4: Add Support for Chelsio T5 adapter RDMA/cxgb4: Turn off db coalescing when RDMA QPs are in use. RDMA/cxgb4: Add module_params to enable DB FC & Coalescing on T5 RDMA/cxgb4: Use DSGLs for fastreg and adapter memory writes for T5. RDMA/cxgb4: Map pbl buffers for dma if using DSGL. RDMA/cxgb4: Bump tcam_full stat and WR reply timeout RDMA/cxgb4: Fix onchip queue support for T5

 drivers/infiniband/hw/cxgb4/cm.c                   |   66 ++-
 drivers/infiniband/hw/cxgb4/device.c               |   34 +-
 drivers/infiniband/hw/cxgb4/iw_cxgb4.h             |   14 +-
 drivers/infiniband/hw/cxgb4/mem.c                  |  155 ++++-
 drivers/infiniband/hw/cxgb4/provider.c             |   15 +-
 drivers/infiniband/hw/cxgb4/qp.c                   |  113 ++-
 drivers/infiniband/hw/cxgb4/t4.h                   |   11 +-
 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h         |   55 ++-
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c    |  778 ++++++++++++++++++--
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h     |    3 +
 drivers/net/ethernet/chelsio/cxgb4/sge.c           |   89 ++-
 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c         |  256 ++++++--
 drivers/net/ethernet/chelsio/cxgb4/t4_hw.h         |    1 -
 drivers/net/ethernet/chelsio/cxgb4/t4_msg.h        |   53 ++
 drivers/net/ethernet/chelsio/cxgb4/t4_regs.h       |   98 +++
 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h      |    2 +-
 drivers/net/ethernet/chelsio/cxgb4vf/adapter.h     |    1 +
 .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c    |   35 +-
 drivers/net/ethernet/chelsio/cxgb4vf/sge.c         |    8 +-
 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h |   24 +
 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c     |   14 +-
 drivers/scsi/csiostor/Makefile                     |    3 +-
 drivers/scsi/csiostor/csio_hw.c                    |  559 +++-----------
 drivers/scsi/csiostor/csio_hw.h                    |   47 +-
 drivers/scsi/csiostor/csio_hw_chip.h               |  175 +++++
 drivers/scsi/csiostor/csio_hw_t4.c                 |  403 ++++++++++
 drivers/scsi/csiostor/csio_hw_t5.c                 |  397 ++++++++++
 drivers/scsi/csiostor/csio_init.c                  |   48 +-
 drivers/scsi/csiostor/csio_init.h                  |   29 +-
 drivers/scsi/csiostor/csio_lnode.h                 |    2 +-
 drivers/scsi/csiostor/csio_rnode.c                 |   10 +-
 drivers/scsi/csiostor/csio_rnode.h                 |    2 +-
 drivers/scsi/csiostor/csio_wr.c                    |   60 +-
 33 files changed, 2819 insertions(+), 741 deletions(-)
 create mode 100644 drivers/scsi/csiostor/csio_hw_chip.h
 create mode 100644 drivers/scsi/csiostor/csio_hw_t4.c
 create mode 100644 drivers/scsi/csiostor/csio_hw_t5.c