Skip to content

Shared PD and MR

Shamir Rabinovitch linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest25 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25RDMA/uverbs: uobj_get_obj_read should return the ib_uobjectdrivers/infiniband/core/uverbs_cmd.c include/rdma/uverbs_std_types.h+98 -350 replies
2/25RDMA/uverbs: Delete the macro uobj_put_obj_readdrivers/infiniband/core/uverbs_cmd.c include/rdma/uverbs_std_types.h+46 -490 replies
3/25RDMA/nldev: ib_pd can be pointed by multiple ib_ucontextdrivers/infiniband/core/nldev.c include/uapi/rdma/rdma_netlink.h+125 -51 reply
4/25IB/{core,hw}: ib_pd should not have ib_uobject pointerdrivers/infiniband/core/uverbs_cmd.c drivers/infiniband/core/verbs.c drivers/infiniband/hw/hns/hns_roce_hw_v1.c +3 more+2 -60 replies
5/25IB/core: ib_uobject need HW object reference countdrivers/infiniband/core/rdma_core.c include/rdma/ib_verbs.h+28 -20 replies
6/25IB/uverbs: Helper function to initialize ufile member of uverbs_attr_bundledrivers/infiniband/core/uverbs_cmd.c+18 -00 replies
7/25IB/uverbs: Add context import lock/unlock helperdrivers/infiniband/core/uverbs.h drivers/infiniband/core/uverbs_cmd.c drivers/infiniband/core/uverbs_main.c+76 -00 replies
8/25IB/uverbs: ufile must be freed only when not used anymoredrivers/infiniband/core/rdma_core.c drivers/infiniband/core/uverbs.h drivers/infiniband/core/uverbs_cmd.c +1 more+71 -010 replies
9/25IB/verbs: Prototype of HW object clone callbackinclude/rdma/ib_verbs.h+26 -00 replies
10/25IB/core: Install clone ib_pd in device opsdrivers/infiniband/core/device.c+1 -00 replies
11/25IB/mlx4: Add implementation of clone_pd callbackdrivers/infiniband/hw/mlx4/main.c+13 -10 replies
12/25IB/mlx5: Add implementation of clone_pd callbackdrivers/infiniband/hw/mlx5/main.c+22 -70 replies
13/25RDMA/rxe: Add implementation of clone_pd callbackdrivers/infiniband/sw/rxe/rxe_verbs.c+3 -00 replies
14/25IB/uverbs: Add clone reference counting to ib_pddrivers/infiniband/core/uverbs_cmd.c include/rdma/ib_verbs.h+6 -00 replies
15/25IB/uverbs: Add PD import verbdrivers/infiniband/core/uverbs_cmd.c include/uapi/rdma/ib_user_verbs.h+109 -02 replies
16/25IB/mlx4: Enable import from FD verbdrivers/infiniband/hw/mlx4/main.c+2 -10 replies
17/25IB/mlx5: Enable import from FD verbdrivers/infiniband/hw/mlx5/main.c+2 -10 replies
18/25RDMA/rxe: Enable import from FD verbdrivers/infiniband/sw/rxe/rxe_verbs.c+1 -00 replies
19/25IB/core: ib_mr should not have ib_uobject pointerdrivers/infiniband/core/uverbs_cmd.c drivers/infiniband/core/uverbs_std_types_mr.c drivers/infiniband/core/verbs.c +1 more+2 -60 replies
20/25IB/core: Install clone ib_mr in device opsdrivers/infiniband/core/device.c+1 -00 replies
21/25IB/mlx4: Add implementation of clone_pd callbackdrivers/infiniband/hw/mlx4/main.c+1 -00 replies
22/25IB/mlx5: Add implementation of clone_pd callbackdrivers/infiniband/hw/mlx5/main.c+1 -00 replies
23/25RDMA/rxe: Add implementation of clone_pd callbackdrivers/infiniband/sw/rxe/rxe_verbs.c+1 -00 replies
24/25IB/uverbs: Add clone reference counting to ib_mrdrivers/infiniband/core/uverbs_cmd.c include/rdma/ib_verbs.h+5 -00 replies
25/25IB/uverbs: Add MR import verbdrivers/infiniband/core/uverbs_cmd.c include/uapi/rdma/ib_user_verbs.h+80 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/25] Shared PD and MR

Following patch-set introduce the shared object feature.

A shared object feature allows one process to create HW objects (currently PD and MR) so that a second process can import.

Patch-set is logically splits to 4 parts as the following:
- patches 1 to 8 and 18 are preparation steps.
- patches 9 to 14 are the implementation of import PD
- patches 15 to 17 are the implementation of the verb
- patches 19 to 14 are the implementation of import MR

Shamir Rabinovitch (17):
RDMA/uverbs: uobj_get_obj_read should return the ib_uobject RDMA/uverbs: Delete the macro uobj_put_obj_read RDMA/nldev: ib_pd can be pointed by multiple ib_ucontext IB/{core,hw}: ib_pd should not have ib_uobject pointer IB/core: ib_uobject need HW object reference count IB/uverbs: Helper function to initialize ufile member of
uverbs_attr_bundle
IB/uverbs: Add context import lock/unlock helper IB/uverbs: ufile must be freed only when not used anymore IB/verbs: Prototype of HW object clone callback IB/mlx4: Add implementation of clone_pd callback IB/mlx5: Add implementation of clone_pd callback RDMA/rxe: Add implementation of clone_pd callback IB/uverbs: Add clone reference counting to ib_pd IB/uverbs: Add PD import verb
IB/mlx4: Enable import from FD verb
IB/mlx5: Enable import from FD verb
RDMA/rxe: Enable import from FD verb

Yuval Shaia (8):
IB/core: Install clone ib_pd in device ops IB/core: ib_mr should not have ib_uobject pointer IB/core: Install clone ib_mr in device ops IB/mlx4: Add implementation of clone_pd callback IB/mlx5: Add implementation of clone_pd callback RDMA/rxe: Add implementation of clone_pd callback IB/uverbs: Add clone reference counting to ib_mr IB/uverbs: Add MR import verb

 drivers/infiniband/core/device.c              |   2 +
 drivers/infiniband/core/nldev.c               | 127 ++++-
 drivers/infiniband/core/rdma_core.c           |  52 +-
 drivers/infiniband/core/uverbs.h              |  24 +
 drivers/infiniband/core/uverbs_cmd.c          | 505 +++++++++++++++---
 drivers/infiniband/core/uverbs_main.c         |   5 +
 drivers/infiniband/core/uverbs_std_types_mr.c |   1 -
 drivers/infiniband/core/verbs.c               |   4 -
 drivers/infiniband/hw/hns/hns_roce_hw_v1.c    |   1 -
 drivers/infiniband/hw/mlx4/main.c             |  18 +-
 drivers/infiniband/hw/mlx5/main.c             |  34 +-
 drivers/infiniband/hw/mthca/mthca_qp.c        |   3 +-
 drivers/infiniband/sw/rxe/rxe_verbs.c         |   5 +
 include/rdma/ib_verbs.h                       |  43 +-
 include/rdma/uverbs_std_types.h               |  11 +-
 include/uapi/rdma/ib_user_verbs.h             |  15 +
 include/uapi/rdma/rdma_netlink.h              |   3 +
 17 files changed, 740 insertions(+), 113 deletions(-)
Signature · 1 line
2.20.1