IB/mad: Add support for OPA MAD processing.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 35 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | IB/mad: Clean up ib_find_send_maddrivers/ | +6 | 3 replies | |
| 2/14 | IB/mad: Create an RMPP Base headerdrivers/ drivers/ drivers/ +1 more | +84 | 4 replies | |
| 3/14 | IB/mad: Create handle_ib_smidrivers/ | +49 | 5 replies | |
| 4/14 | IB/mad: Add helper function for smi_handle_dr_smp_senddrivers/ | +47 | 0 replies | |
| 5/14 | IB/mad: Add helper function for smi_handle_dr_smp_recvdrivers/ | +47 | 0 replies | |
| 6/14 | IB/mad: Add helper function for smi_check_forward_dr_smpdrivers/ | +17 | 2 replies | |
| 7/14 | IB/mad: Add base version to ib_create_send_maddrivers/ drivers/ drivers/ +9 more | +29 | 0 replies | |
| 8/14 | IB/core: Add rdma_max_mad_size helperdrivers/ drivers/ drivers/ +7 more | +30 | 10 replies | |
| 9/14 | IB/mad: Convert allocations from kmem_cache to kmallocdrivers/ | +37 | 2 replies | |
| 10/14 | IB/mad: Add MAD size parameters to process_maddrivers/ drivers/ drivers/ +19 more | +113 | 2 replies | |
| 11/14 | IB/core: Add rdma_cap_opa_mad helperinclude/ | +21 | 1 reply | |
| 12/14 | IB/mad: Add partial Intel OPA MAD supportdrivers/ drivers/ include/ | +51 | 0 replies | |
| 13/14 | IB/mad: Add partial Intel OPA MAD supportdrivers/ drivers/ drivers/ +1 more | +240 | 0 replies | |
| 14/14 | IB/mad: Add final OPA MAD processingdrivers/ drivers/ drivers/ +4 more | +242 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/14] IB/mad: Add support for 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.
OPA MADs share the same common header with IBTA MADs which allows us to share most of the MAD processing code.
In addition to supporting some IBTA management classes, OPA devices use MADs with lengths up to 2K. These MADs increase the performance of management traffic on OPA fabrics.
Devices report their support of OPA MADs through the new immutable data capability flag.
I am submitting this as a set of smaller patches which should be easier to review individually but with the exception of the first patch they should be accepted as a series. I recognize that many of the patches could be squashed when considering functionality only but I don't think that is easiest way to review them.
The patch series is broken up as follows:
1 patch
IB/mad: Clean up ib_find_send_mad
Generalize ib_find_send_mad for both OPA and IB devices
6 patches
IB/mad: Create an RMPP Base header
IB/mad: Create handle_ib_smi
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 base version to ib_create_send_mad
Modify existing MAD code in anticipation for that code to handle both OPA and IB MADs but retain only the IB functionality within the patches themselves.
3 patches
IB/core: Add rdma_max_mad_size helper
IB/mad: Convert allocations from kmem_cache to kmalloc IB/mad: Add MAD size parameters to process_mad
Add max MAD size to the device immutable data and convert the MAD code to use that value rather than the previous hard coded MAD size of 256 bytes. Once again these patches retain the IB functionality but do so by specifying a new define for their MAX MAD size.
4 patches
IB/core: Add rdma_cap_opa_mad helper
IB/mad: Add partial Intel OPA MAD support
IB/mad: Add partial Intel OPA MAD support
IB/mad: Add final OPA MAD processing
Implement an OPA device immutable core capability flag and use it to process OPA MADs as appropriate. Once again this is split up to make reviewing the patches easier.
Due to the large structural change of these patches vs previous submissions I am submitting these as a new series.
The following general comments were addressed from the last "version".
Rebased to latest Dougs for-4.2 branch
Update based on Michaels rdma_cap_* helpers and related core capability work.
Address Comments by Doug Ledford
Change device MAD size error message to a WARN_ON
Add gfp_t flags to alloc_mad_priv and pass the correct flags depending on the allocation site.
Address Comments by Sean Hefty
Change alloc_mad_priv to take mad_size
Change individual device mad size checks in process_mad to be WARN_ON
create new patch which defines an ib_rmpp_hdr struct to be shared between IB and OPA mad defines.
Change "jumbo" to "opa" and remove jumbo from all related documentation/commit messages
Fix up comments for smi functions
Remove cached_dev_attr patch and replace with the new immutable data
Ira Weiny (14):
IB/mad: Clean up ib_find_send_mad
IB/mad: Create an RMPP Base header
IB/mad: Create handle_ib_smi
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 base version to ib_create_send_mad IB/core: Add rdma_max_mad_size helper
IB/mad: Convert allocations from kmem_cache to kmalloc IB/mad: Add MAD size parameters to process_mad IB/core: Add rdma_cap_opa_mad helper
IB/mad: Add partial Intel OPA MAD support IB/mad: Add partial Intel OPA MAD support IB/mad: Add final OPA MAD processing
drivers/infiniband/core/agent.c | 22 +- drivers/infiniband/core/agent.h | 3 +- drivers/infiniband/core/cm.c | 6 +- drivers/infiniband/core/mad.c | 469 +++++++++++++++++++-------- drivers/infiniband/core/mad_priv.h | 7 +- drivers/infiniband/core/mad_rmpp.c | 148 +++++---- drivers/infiniband/core/opa_smi.h | 78 +++++ drivers/infiniband/core/sa_query.c | 3 +- drivers/infiniband/core/smi.c | 231 +++++++++---- drivers/infiniband/core/sysfs.c | 5 +- drivers/infiniband/core/user_mad.c | 36 +- drivers/infiniband/hw/amso1100/c2_provider.c | 5 +- drivers/infiniband/hw/cxgb3/iwch_provider.c | 5 +- drivers/infiniband/hw/cxgb4/provider.c | 7 +- drivers/infiniband/hw/ehca/ehca_iverbs.h | 4 +- drivers/infiniband/hw/ehca/ehca_main.c | 2 + drivers/infiniband/hw/ehca/ehca_sqp.c | 9 +- drivers/infiniband/hw/ipath/ipath_mad.c | 9 +- drivers/infiniband/hw/ipath/ipath_verbs.c | 1 + drivers/infiniband/hw/ipath/ipath_verbs.h | 3 +- drivers/infiniband/hw/mlx4/mad.c | 13 +- drivers/infiniband/hw/mlx4/main.c | 2 + drivers/infiniband/hw/mlx4/mlx4_ib.h | 3 +- drivers/infiniband/hw/mlx5/mad.c | 9 +- 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 | 13 +- drivers/infiniband/hw/mthca/mthca_provider.c | 1 + drivers/infiniband/hw/nes/nes_verbs.c | 3 +- drivers/infiniband/hw/ocrdma/ocrdma_ah.c | 9 +- drivers/infiniband/hw/ocrdma/ocrdma_ah.h | 3 +- drivers/infiniband/hw/ocrdma/ocrdma_main.c | 2 + drivers/infiniband/hw/ocrdma/ocrdma_stats.h | 1 + drivers/infiniband/hw/qib/qib_iba7322.c | 3 +- drivers/infiniband/hw/qib/qib_mad.c | 12 +- drivers/infiniband/hw/qib/qib_verbs.c | 1 + drivers/infiniband/hw/qib/qib_verbs.h | 3 +- drivers/infiniband/ulp/srpt/ib_srpt.c | 3 +- include/rdma/ib_mad.h | 36 +- include/rdma/ib_verbs.h | 44 ++- include/rdma/opa_smi.h | 106 ++++++ 42 files changed, 994 insertions(+), 334 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