Skip to content

Add SRQ and XRC support for ODP MRs

Leon Romanovsky linux-rdma netdev 1 version Applied

Status from this message: I applied these patches to for-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/12IB/mlx5: Fix locking SRQ object in ODP eventdrivers/infiniband/hw/mlx5/cq.c drivers/infiniband/hw/mlx5/odp.c drivers/infiniband/hw/mlx5/srq.h +1 more+17 -180 replies
2/12IB/core: Allocate bit for SRQ ODP supportinclude/rdma/ib_verbs.h+1 -00 replies
3/12IB/uverbs: Expose XRC ODP device capabilitiesdrivers/infiniband/core/uverbs_cmd.c include/rdma/ib_verbs.h include/uapi/rdma/ib_user_verbs.h+4 -00 replies
4/12IB/mlx5: Remove useless check in ODP handlerdrivers/infiniband/hw/mlx5/odp.c+2 -70 replies
5/12IB/mlx5: Clean mlx5_ib_mr_responder_pfault_handler() signaturedrivers/infiniband/hw/mlx5/odp.c+7 -70 replies
6/12IB/mlx5: Add XRC initiator ODP supportdrivers/infiniband/hw/mlx5/odp.c+5 -10 replies
7/12IB/mlx5: Let read user wqe also from SRQ bufferdrivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/odp.c drivers/infiniband/hw/mlx5/qp.c+166 -550 replies
8/12IB/mlx5: Add ODP SRQ supportdrivers/infiniband/hw/mlx5/odp.c+61 -230 replies
9/12IB/mlx5: Advertise SRQ ODP support for supported transportsdrivers/infiniband/hw/mlx5/odp.c+6 -00 replies
10/12net/mlx5: Add XRC transport to ODP device capabilities layoutinclude/linux/mlx5/mlx5_ifc.h+3 -10 replies
11/12IB/mlx5: Advertise XRC ODP supportdrivers/infiniband/hw/mlx5/odp.c+18 -00 replies
12/12net/mlx5: Set ODP SRQ support in firmwaredrivers/net/ethernet/mellanox/mlx5/core/main.c include/linux/mlx5/device.h include/linux/mlx5/mlx5_ifc.h+57 -06 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchMajd Dibbiny
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

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

Read the v1 thread

Cover letter [PATCH rdma-next 00/12] Add SRQ and XRC support for ODP MRs

From: Leon Romanovsky <[email protected]>

Hi,

This series extend ODP to work with SRQ and XRC. Being both per-operation (e.g. RDMA write, RDMA read and atomic) and per-transport (e.g. RC, UD and XRC), we extend IB/core and mlx5 driver to provide needed information to user space.

Thanks

Moni Shoua (12):
IB/mlx5: Fix locking SRQ object in ODP event IB/core: Allocate bit for SRQ ODP support
IB/uverbs: Expose XRC ODP device capabilities IB/mlx5: Remove useless check in ODP handler IB/mlx5: Clean mlx5_ib_mr_responder_pfault_handler() signature IB/mlx5: Add XRC initiator ODP support
IB/mlx5: Let read user wqe also from SRQ buffer IB/mlx5: Add ODP SRQ support
IB/mlx5: Advertise SRQ ODP support for supported transports net/mlx5: Add XRC transport to ODP device capabilities layout IB/mlx5: Advertise XRC ODP support
net/mlx5: Set ODP SRQ support in firmware

 drivers/infiniband/core/uverbs_cmd.c          |   1 +
 drivers/infiniband/hw/mlx5/cq.c               |   4 +-
 drivers/infiniband/hw/mlx5/mlx5_ib.h          |   9 +-
 drivers/infiniband/hw/mlx5/odp.c              | 138 ++++++++++---
 drivers/infiniband/hw/mlx5/qp.c               | 192 +++++++++++++-----
 drivers/infiniband/hw/mlx5/srq.h              |   2 -
 drivers/infiniband/hw/mlx5/srq_cmd.c          |  16 +-
 .../net/ethernet/mellanox/mlx5/core/main.c    |  53 +++++
 include/linux/mlx5/device.h                   |   3 +
 include/linux/mlx5/mlx5_ifc.h                 |   5 +-
 include/rdma/ib_verbs.h                       |   2 +
 include/uapi/rdma/ib_user_verbs.h             |   2 +
 12 files changed, 331 insertions(+), 96 deletions(-)