Skip to content

Reorganize mlx5 UMR creation flow

Leon Romanovsky linux-rdma lkml 1 version Applied

Status from this message: Applied to for-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5RDMA/mlx5: Remove dead check for EAGAIN after alloc_mr_from_cache()drivers/infiniband/hw/mlx5/mr.c+1 -30 replies
2/5RDMA/mlx5: Use set_mkc_access_pd_addr_fields() in reg_create()drivers/infiniband/hw/mlx5/mr.c+1 -140 replies
3/5RDMA/mlx5: Make mkeys always owned by the kernel's PD when not enableddrivers/infiniband/hw/mlx5/mr.c+26 -250 replies
4/5RDMA/mlx5: Disable IB_DEVICE_MEM_MGT_EXTENSIONS if IB_WR_REG_MR can't workdrivers/infiniband/hw/mlx5/main.c+3 -10 replies
5/5RDMA/mlx5: Clarify what the UMR is for when creating MRsdrivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/mr.c drivers/infiniband/hw/mlx5/odp.c +1 more+97 -490 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH rdma-next 0/5] Reorganize mlx5 UMR creation flow

From: Leon Romanovsky <[email protected]>

This flow has become crufty and confusing. Revise it so that the rules on how UMR is used with MRs is much clearer and more correct.

Fixes a few minor bugs in ODP and rereg_mr where disallowed things were not properly blocked.

Thanks

Jason Gunthorpe (5):
RDMA/mlx5: Remove dead check for EAGAIN after alloc_mr_from_cache() RDMA/mlx5: Use set_mkc_access_pd_addr_fields() in reg_create() RDMA/mlx5: Make mkeys always owned by the kernel's PD when not enabled RDMA/mlx5: Disable IB_DEVICE_MEM_MGT_EXTENSIONS if IB_WR_REG_MR can't
work
RDMA/mlx5: Clarify what the UMR is for when creating MRs

 drivers/infiniband/hw/mlx5/main.c    |   4 +-
 drivers/infiniband/hw/mlx5/mlx5_ib.h |  45 +++++++--
 drivers/infiniband/hw/mlx5/mr.c      | 133 ++++++++++++++-------------
 drivers/infiniband/hw/mlx5/odp.c     |   9 +-
 drivers/infiniband/hw/mlx5/wr.c      |  27 +++---
 5 files changed, 127 insertions(+), 91 deletions(-)

--
2.26.2