Skip to content

RFC InfiniBand userspace verbs implementation

Roland Dreier lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 136 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4IB: core changes for userspace verbsdrivers/infiniband/core/verbs.c drivers/infiniband/include/ib_verbs.h+105 -290 replies
2/4IB: userspace verbs main moduledrivers/infiniband/core/uverbs.h drivers/infiniband/core/uverbs_cmd.c drivers/infiniband/core/uverbs_main.c +2 more+2079 -00 replies
3/4IB: userspace verbs mthca changesdrivers/infiniband/hw/mthca/mthca_cq.c drivers/infiniband/hw/mthca/mthca_dev.h drivers/infiniband/hw/mthca/mthca_memfree.c +5 more+696 -1154 replies
4/4IB: userspace verbs Kconfig/Makefile changesdrivers/infiniband/Kconfig drivers/infiniband/core/Makefile+13 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH][RFC][0/4] InfiniBand userspace verbs implementation

Here is an initial implementation of InfiniBand userspace verbs. I plan to commit this code to the OpenIB repository shortly, and submit it for inclusion during the 2.6.13 cycle, so I am posting it early for comments.

This code, in conjunction with the libibverbs and libmthca userspace libraries available from the subversion trees at

https://openib.org/svn/gen2/branches/roland-uverbs/src/userspace/libibverbs
https://openib.org/svn/gen2/branches/roland-uverbs/src/userspace/libmthca

enables userspace processes to access InfiniBand HCAs directly.

For those not familiar with the InfiniBand architecture, this so-called "userspace verbs" support allows userspace to post data path commands directly to the HCA. Resource allocation and other control path operations still go through the kernel driver.

Please take a look at this code if you have a chance. I would appreciate high-level criticism of the design and implementation as well as nitpicky complaints about coding style and typos.

In particular, the memory pinning code in in uverbs_mem.c could stand a looking over. In addition, a sanity check of the write()-based scheme for passing commands into the kernel in uverbs_main.c and uverbs_cmd.c is probably worthwhile.

Thanks,
Roland