Skip to content

Introduce mlx5 Memory Scheme ODP

Michael Guralnik linux-rdma 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyApplied
  2. v18 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- switch mlx5_umem_find_best_pgsz to a function and rename

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8net/mlx5: Expand mkey page size to support 6 bitsdrivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/mr.c drivers/infiniband/hw/mlx5/odp.c +1 more+25 -210 replies
2/8net/mlx5: Expose HW bits for Memory scheme ODPdrivers/infiniband/hw/mlx5/odp.c drivers/net/ethernet/mellanox/mlx5/core/main.c include/linux/mlx5/device.h +1 more+86 -430 replies
3/8RDMA/mlx5: Add new ODP memory scheme eqe formatdrivers/infiniband/hw/mlx5/odp.c include/linux/mlx5/device.h+50 -200 replies
4/8RDMA/mlx5: Enforce umem boundaries for explicit ODP page faultsdrivers/infiniband/hw/mlx5/odp.c+16 -90 replies
5/8RDMA/mlx5: Split ODP mkey search logicdrivers/infiniband/hw/mlx5/odp.c+39 -260 replies
6/8RDMA/mlx5: Add handling for memory scheme page fault eventsdrivers/infiniband/hw/mlx5/odp.c+114 -60 replies
7/8RDMA/mlx5: Add implicit MR handling to ODP memory schemedrivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/odp.c+111 -80 replies
8/8net/mlx5: Handle memory scheme ODP capabilitiesdrivers/net/ethernet/mellanox/mlx5/core/main.c include/linux/mlx5/device.h+25 -70 replies

Reviews trailers per patch

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

PatchLeon Romanovsky
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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 rdma-next 0/8] Introduce mlx5 Memory Scheme ODP

This series introduces a new ODP scheme in mlx5 where the FW takes the responsibility of parsing and providing page fault data to the driver to handle the fault.
As opposed to the current ODP transport scheme where the driver is responsible for reading and parsing work queues and querying mkeys to acquire needed info to handle the page fault.

The new scheme allows driver to support ODP over Devx QPs where driver is not able to access the QP buffers, owned by the user application, to read the work queue requests.
Furthermore, the new scheme allows support for ODP with new indirect MKEY types as the driver doesn't need to query or parse indirect mkeys in this scheme.

The driver will enable the new scheme on devices that have the relevant capabilities. Otherwise, transport scheme ODP will be the default.

The move to memory scheme ODP is transparent to existing ODP applications and no change is needed.
New application that want to take advantage of the new functionality should query which scheme is active and it's capabilities using Devx.

v1->v2:
- switch mlx5_umem_find_best_pgsz to a function and rename

Michael Guralnik (8):
net/mlx5: Expand mkey page size to support 6 bits net/mlx5: Expose HW bits for Memory scheme ODP RDMA/mlx5: Add new ODP memory scheme eqe format RDMA/mlx5: Enforce umem boundaries for explicit ODP page faults RDMA/mlx5: Split ODP mkey search logic
RDMA/mlx5: Add handling for memory scheme page fault events RDMA/mlx5: Add implicit MR handling to ODP memory scheme net/mlx5: Handle memory scheme ODP capabilities

 drivers/infiniband/hw/mlx5/mlx5_ib.h          |  30 +-
 drivers/infiniband/hw/mlx5/mr.c               |  10 +-
 drivers/infiniband/hw/mlx5/odp.c              | 400 ++++++++++++++----
 .../net/ethernet/mellanox/mlx5/core/main.c    |  54 ++-
 include/linux/mlx5/device.h                   |  30 +-
 include/linux/mlx5/mlx5_ifc.h                 |  64 ++-
 6 files changed, 457 insertions(+), 131 deletions(-)
Signature · 1 line
2.17.2