Skip to content

IB/mad: Add support for Intel Omni-Path Architecture (OPA) MAD processing.

[email protected] linux-rdma 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest19 patches 64 repliesIn review
  2. v119 patches 0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19IB/mad: Rename is_data_mad to is_rmpp_data_maddrivers/infiniband/core/mad.c+4 -30 replies
2/19IB/core: Cache device attributes for use by upper level driversdrivers/infiniband/core/device.c include/rdma/ib_verbs.h+3 -04 replies
3/19IB/mad: Change validate_mad signature to take ib_mad_hdr rather than ib_maddrivers/infiniband/core/mad.c+6 -61 reply
4/19IB/mad: Change ib_response_mad signature to take ib_mad_hdr rather than ib_maddrivers/infiniband/core/mad.c drivers/infiniband/core/user_mad.c include/rdma/ib_mad.h+14 -141 reply
5/19IB/mad: Change cast in rcv_has_same_classdrivers/infiniband/core/mad.c+1 -10 replies
6/19IB/core: Add max_mad_size to ib_device_attrdrivers/infiniband/core/mad.c drivers/infiniband/hw/amso1100/c2_rnic.c drivers/infiniband/hw/cxgb3/iwch_provider.c +12 more+24 -05 replies
7/19IB/mad: Convert ib_mad_private allocations from kmem_cache to kmallocdrivers/infiniband/core/mad.c+30 -432 replies
8/19IB/mad: Add helper function for smi_handle_dr_smp_senddrivers/infiniband/core/smi.c+47 -341 reply
9/19IB/mad: Add helper function for smi_handle_dr_smp_recvdrivers/infiniband/core/smi.c+47 -330 replies
10/19IB/mad: Add helper function for smi_check_forward_dr_smpdrivers/infiniband/core/smi.c+17 -90 replies
11/19IB/mad: Add helper function for SMI processingdrivers/infiniband/core/mad.c+49 -360 replies
12/19IB/mad: Add MAD size parameters to process_maddrivers/infiniband/core/mad.c drivers/infiniband/core/sysfs.c drivers/infiniband/hw/amso1100/c2_provider.c +18 more+103 -364 replies
13/19IB/mad: Add base version parameter to ib_create_send_maddrivers/infiniband/core/agent.c drivers/infiniband/core/cm.c drivers/infiniband/core/mad.c +9 more+29 -140 replies
14/19IB/core: Add IB_DEVICE_OPA_MAD_SUPPORT device cap flaginclude/rdma/ib_verbs.h+5 -025 replies
15/19IB/mad: Create jumbo_mad data structuresdrivers/infiniband/core/mad.c drivers/infiniband/core/mad_priv.h drivers/infiniband/core/mad_rmpp.c +2 more+103 -793 replies
16/19IB/mad: Add Intel Omni-Path Architecture definesdrivers/infiniband/core/mad_priv.h include/rdma/ib_mad.h+5 -22 replies
17/19IB/mad: Implement support for Intel Omni-Path Architecture base version MADs in ib_create_send_maddrivers/infiniband/core/mad.c+28 -103 replies
18/19IB/mad: Implement Intel Omni-Path Architecture SMP processingdrivers/infiniband/core/mad_priv.h drivers/infiniband/core/opa_smi.h drivers/infiniband/core/smi.c +2 more+246 -02 replies
19/19IB/mad: Implement Intel Omni-Path Architecture MAD processingdrivers/infiniband/core/agent.c drivers/infiniband/core/agent.h drivers/infiniband/core/mad.c +4 more+276 -759 replies

Reviews trailers per patch

4 of 19 patches have a Reviewed-by or Acked-by.

PatchSean Hefty
1/19R-b
2/19
3/19R-b
4/19R-b
5/19
6/19
7/19
8/19R-b
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19

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

Read the v4 thread

Cover letter [PATCH v4 00/19] IB/mad: Add support for Intel Omni-Path Architecture (OPA) MAD processing.

From: Ira Weiny <[email protected]>

The following patch series modifies the kernel MAD processing (ib_mad/ib_umad) and related interfaces to send and receive Intel Omni-Path Architecture MADs on devices which support them.

In addition to supporting some IBTA management classes, OPA devices use MADs with lengths up to 2K. These "jumbo" MADs increase the performance of management traffic.

To distinguish IBTA MADs from OPA MADs a new Base Version is introduced. The new format shares the same common header with IBTA MADs which allows us to share most of the MAD processing code when dealing with the new Base Version.

The patch series is broken into 3 main areas.

1) Add the ability for devices to indicate MAD size. modify the MAD code to use this MAD size

2) Enhance the interface to the device agents to support larger and variable length MADs.

3) Add capability bit to indicate support for OPA MADs

4) Add support for creating and processing OPA MADs

Changes for V4:

Rebased to latest Rolands for-next branch (3.19-rc4) Fixed compile issue in ehca driver found with 0-day build.

Ira Weiny (19):
IB/mad: Rename is_data_mad to is_rmpp_data_mad
IB/core: Cache device attributes for use by upper level drivers IB/mad: Change validate_mad signature to take ib_mad_hdr rather than
ib_mad
IB/mad: Change ib_response_mad signature to take ib_mad_hdr rather
than ib_mad
IB/mad: Change cast in rcv_has_same_class
IB/core: Add max_mad_size to ib_device_attr
IB/mad: Convert ib_mad_private allocations from kmem_cache to kmalloc IB/mad: Add helper function for smi_handle_dr_smp_send IB/mad: Add helper function for smi_handle_dr_smp_recv IB/mad: Add helper function for smi_check_forward_dr_smp IB/mad: Add helper function for SMI processing
IB/mad: Add MAD size parameters to process_mad
IB/mad: Add base version parameter to ib_create_send_mad IB/core: Add IB_DEVICE_OPA_MAD_SUPPORT device cap flag IB/mad: Create jumbo_mad data structures
IB/mad: Add Intel Omni-Path Architecture defines
IB/mad: Implement support for Intel Omni-Path Architecture base
version MADs in ib_create_send_mad
IB/mad: Implement Intel Omni-Path Architecture SMP processing IB/mad: Implement Intel Omni-Path Architecture MAD processing

 drivers/infiniband/core/agent.c              |  26 +-
 drivers/infiniband/core/agent.h              |   3 +-
 drivers/infiniband/core/cm.c                 |   6 +-
 drivers/infiniband/core/device.c             |   2 +
 drivers/infiniband/core/mad.c                | 519 ++++++++++++++++++---------
 drivers/infiniband/core/mad_priv.h           |   7 +-
 drivers/infiniband/core/mad_rmpp.c           | 144 ++++----
 drivers/infiniband/core/opa_smi.h            |  78 ++++
 drivers/infiniband/core/sa_query.c           |   3 +-
 drivers/infiniband/core/smi.c                | 231 ++++++++----
 drivers/infiniband/core/smi.h                |   6 +
 drivers/infiniband/core/sysfs.c              |   5 +-
 drivers/infiniband/core/user_mad.c           |  38 +-
 drivers/infiniband/hw/amso1100/c2_provider.c |   5 +-
 drivers/infiniband/hw/amso1100/c2_rnic.c     |   1 +
 drivers/infiniband/hw/cxgb3/iwch_provider.c  |   6 +-
 drivers/infiniband/hw/cxgb4/provider.c       |   8 +-
 drivers/infiniband/hw/ehca/ehca_hca.c        |   3 +
 drivers/infiniband/hw/ehca/ehca_iverbs.h     |   4 +-
 drivers/infiniband/hw/ehca/ehca_sqp.c        |   8 +-
 drivers/infiniband/hw/ipath/ipath_mad.c      |   8 +-
 drivers/infiniband/hw/ipath/ipath_verbs.c    |   1 +
 drivers/infiniband/hw/ipath/ipath_verbs.h    |   3 +-
 drivers/infiniband/hw/mlx4/mad.c             |  12 +-
 drivers/infiniband/hw/mlx4/main.c            |   1 +
 drivers/infiniband/hw/mlx4/mlx4_ib.h         |   3 +-
 drivers/infiniband/hw/mlx5/mad.c             |   8 +-
 drivers/infiniband/hw/mlx5/main.c            |   1 +
 drivers/infiniband/hw/mlx5/mlx5_ib.h         |   3 +-
 drivers/infiniband/hw/mthca/mthca_dev.h      |   4 +-
 drivers/infiniband/hw/mthca/mthca_mad.c      |  12 +-
 drivers/infiniband/hw/mthca/mthca_provider.c |   2 +
 drivers/infiniband/hw/nes/nes_verbs.c        |   4 +-
 drivers/infiniband/hw/ocrdma/ocrdma_ah.c     |   3 +-
 drivers/infiniband/hw/ocrdma/ocrdma_ah.h     |   3 +-
 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c  |   1 +
 drivers/infiniband/hw/qib/qib_iba7322.c      |   3 +-
 drivers/infiniband/hw/qib/qib_mad.c          |  11 +-
 drivers/infiniband/hw/qib/qib_verbs.c        |   1 +
 drivers/infiniband/hw/qib/qib_verbs.h        |   3 +-
 drivers/infiniband/hw/usnic/usnic_ib_verbs.c |   2 +
 drivers/infiniband/ulp/srpt/ib_srpt.c        |   3 +-
 include/rdma/ib_mad.h                        |  40 ++-
 include/rdma/ib_verbs.h                      |  15 +-
 include/rdma/opa_smi.h                       | 106 ++++++
 45 files changed, 999 insertions(+), 357 deletions(-)
 create mode 100644 drivers/infiniband/core/opa_smi.h
 create mode 100644 include/rdma/opa_smi.h
Signature · 6 lines
1.8.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html