Skip to content

RDMA/erdma: Add a new doorbell allocation mechanism

Cheng Xu linux-rdma 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4RDMA/erdma: Configure PAGE_SIZE to hardwaredrivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_main.c+32 -00 replies
2/4RDMA/erdma: Allocate doorbell resources from hardwaredrivers/infiniband/hw/erdma/erdma.h drivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_verbs.c +1 more+131 -190 replies
3/4RDMA/erdma: Associate QPs/CQs with doorbells for authorizationdrivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_verbs.c+41 -70 replies
4/4RDMA/erdma: Refactor the original doorbell allocation mechanismdrivers/infiniband/hw/erdma/erdma.h drivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_main.c +2 more+27 -1630 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH for-next 0/4] RDMA/erdma: Add a new doorbell allocation mechanism

Hi,

This series adds a new doorbell allocation mechanism to meet the the isolation requirement for userspace applications. Two main change points in this patch set: One is that we extend the bar space for doorbell allocation, and the other one is that we associate QPs/CQs with the allocated doorbells for authorization. We also keep the original doorbell mechanism for compatibility, but only used under CAP_SYS_RAWIO to prevent non-privileged access, which suggested by Jason before.

- #1 configures the current PAGE_SIZE to hardware, so that hardware can organize the mmio space properly.
- #2~#3 implement the new doorbell allocation mechanism.
- #4 refactors the doorbell allocation part to make code more simpler and cleaner.

Thanks,
Cheng Xu

Cheng Xu (4):
RDMA/erdma: Configure PAGE_SIZE to hardware RDMA/erdma: Allocate doorbell resources from hardware RDMA/erdma: Associate QPs/CQs with doorbells for authorization RDMA/erdma: Refactor the original doorbell allocation mechanism

 drivers/infiniband/hw/erdma/erdma.h       |  16 +-
 drivers/infiniband/hw/erdma/erdma_hw.h    |  64 ++++++--
 drivers/infiniband/hw/erdma/erdma_main.c  |  53 +++----
 drivers/infiniband/hw/erdma/erdma_verbs.c | 178 +++++++++++++---------
 drivers/infiniband/hw/erdma/erdma_verbs.h |  13 +-
 5 files changed, 183 insertions(+), 141 deletions(-)
Signature · 1 line
2.31.1