Skip to content

Enable asynchronous event FD per object

Leon Romanovsky linux-rdma lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9RDMA/core: Allow the ioctl layer to abort a fully created uobjectdrivers/infiniband/core/rdma_core.c drivers/infiniband/core/rdma_core.h drivers/infiniband/core/uverbs_cmd.c +10 more+76 -600 replies
2/9IB/uverbs: Refactor related objects to use their own asynchronous event FDdrivers/infiniband/core/uverbs.h drivers/infiniband/core/uverbs_cmd.c drivers/infiniband/core/uverbs_main.c +1 more+39 -100 replies
3/9IB/uverbs: Extend CQ to get its own asynchronous event FDdrivers/infiniband/core/uverbs.h drivers/infiniband/core/uverbs_std_types_cq.c include/uapi/rdma/ib_user_ioctl_cmds.h+25 -30 replies
4/9IB/uverbs: Cleanup wq/srq context usage from uverbs layerdrivers/infiniband/core/uverbs_cmd.c+0 -40 replies
5/9RDMA/core: Consolidate ib_create_srq flowsdrivers/infiniband/core/uverbs_cmd.c drivers/infiniband/core/verbs.c include/rdma/ib_verbs.h+40 -560 replies
6/9IB/uverbs: Introduce create/destroy SRQ commands over ioctldrivers/infiniband/core/Makefile drivers/infiniband/core/rdma_core.h drivers/infiniband/core/uverbs_std_types.c +3 more+264 -330 replies
7/9IB/uverbs: Fix create WQ to use the given user handledrivers/infiniband/core/uverbs_cmd.c+1 -20 replies
8/9IB/uverbs: Introduce create/destroy WQ commands over ioctldrivers/infiniband/core/Makefile drivers/infiniband/core/rdma_core.h drivers/infiniband/core/uverbs_std_types.c +3 more+223 -240 replies
9/9IB/uverbs: Introduce create/destroy QP commands over ioctldrivers/infiniband/core/Makefile drivers/infiniband/core/rdma_core.h drivers/infiniband/core/uverbs_std_types.c +4 more+476 -410 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/9] Enable asynchronous event FD per object

From: Leon Romanovsky <[email protected]>

From Yishai:

This series enables applicable events objects (i.e. QP, SRQ, CQ, WQ) to be created with their own asynchronous event FD.

Before this series any affiliated event on an object was reported on the first asynchronous event FD that was created on the context without the ability to create and use a dedicated FD for it.

With this series we enable granularity and control for the usage per object, according to the application's usage.

For example, a secondary process that uses the same command FD as of the master one, can create its own objects with its dedicated event FD to be able to get the events for them once occurred, this couldn't be done before this series.

To achieve the above, any 'create' method for the applicable objects was extended to get from rdma-core its optional event FD, if wasn't supplied, the default one from the context will be used.

As we prefer to not extend the 'write' mode KABIs anymore and fully move to the 'ioct' mode, as part of this extension QP, SRQ and WQ create/destroy commands were introduced over 'ioctl', the CQ KABI was extended over its existing 'ioctl' create command.

As part of moving to 'ioctl' for the above objects the frame work was improved to abort a fully created uobject upon some later error, some flows were consolidated with the 'write' mode and few bugs were found and fixed.

Yishai

Jason Gunthorpe (2):
RDMA/core: Allow the ioctl layer to abort a fully created uobject RDMA/core: Consolidate ib_create_srq flows

Yishai Hadas (7):
IB/uverbs: Refactor related objects to use their own asynchronous
event FD
IB/uverbs: Extend CQ to get its own asynchronous event FD IB/uverbs: Cleanup wq/srq context usage from uverbs layer IB/uverbs: Introduce create/destroy SRQ commands over ioctl IB/uverbs: Fix create WQ to use the given user handle IB/uverbs: Introduce create/destroy WQ commands over ioctl IB/uverbs: Introduce create/destroy QP commands over ioctl

 drivers/infiniband/core/Makefile              |   5 +-
 drivers/infiniband/core/rdma_core.c           |  28 +-
 drivers/infiniband/core/rdma_core.h           |   7 +-
 drivers/infiniband/core/uverbs.h              |  21 +-
 drivers/infiniband/core/uverbs_cmd.c          |  73 ++--
 drivers/infiniband/core/uverbs_ioctl.c        |  22 +-
 drivers/infiniband/core/uverbs_main.c         |  16 +-
 drivers/infiniband/core/uverbs_std_types.c    |  95 -----
 drivers/infiniband/core/uverbs_std_types_cq.c |  17 +-
 drivers/infiniband/core/uverbs_std_types_mr.c |  12 +-
 drivers/infiniband/core/uverbs_std_types_qp.c | 401 ++++++++++++++++++
 .../infiniband/core/uverbs_std_types_srq.c    | 233 ++++++++++
 drivers/infiniband/core/uverbs_std_types_wq.c | 194 +++++++++
 drivers/infiniband/core/uverbs_uapi.c         |   3 +
 drivers/infiniband/core/verbs.c               |  29 +-
 drivers/infiniband/hw/mlx5/devx.c             |  10 +-
 drivers/infiniband/hw/mlx5/main.c             |  24 +-
 drivers/infiniband/hw/mlx5/qos.c              |  13 +-
 include/rdma/ib_verbs.h                       |  32 +-
 include/rdma/uverbs_ioctl.h                   |   3 +
 include/rdma/uverbs_std_types.h               |   2 +-
 include/rdma/uverbs_types.h                   |   3 +-
 include/uapi/rdma/ib_user_ioctl_cmds.h        |  81 ++++
 include/uapi/rdma/ib_user_ioctl_verbs.h       |  43 ++
 24 files changed, 1139 insertions(+), 228 deletions(-)
 create mode 100644 drivers/infiniband/core/uverbs_std_types_qp.c
 create mode 100644 drivers/infiniband/core/uverbs_std_types_srq.c
 create mode 100644 drivers/infiniband/core/uverbs_std_types_wq.c

--
2.26.2