All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-next 0/4] RDMA/erdma: Add a new doorbell allocation mechanism
@ 2023-06-06  5:50 Cheng Xu
  2023-06-06  5:50 ` [PATCH for-next 1/4] RDMA/erdma: Configure PAGE_SIZE to hardware Cheng Xu
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Cheng Xu @ 2023-06-06  5:50 UTC (permalink / raw)
  To: jgg, leon; +Cc: linux-rdma, KaiShen

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(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-06-13  2:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06  5:50 [PATCH for-next 0/4] RDMA/erdma: Add a new doorbell allocation mechanism Cheng Xu
2023-06-06  5:50 ` [PATCH for-next 1/4] RDMA/erdma: Configure PAGE_SIZE to hardware Cheng Xu
2023-06-06  5:50 ` [PATCH for-next 2/4] RDMA/erdma: Allocate doorbell resources from hardware Cheng Xu
2023-06-06  5:50 ` [PATCH for-next 3/4] RDMA/erdma: Associate QPs/CQs with doorbells for authorization Cheng Xu
2023-06-06  5:50 ` [PATCH for-next 4/4] RDMA/erdma: Refactor the original doorbell allocation mechanism Cheng Xu
2023-06-11  9:19 ` [PATCH for-next 0/4] RDMA/erdma: Add a new " Leon Romanovsky
2023-06-13  2:10   ` Cheng Xu
2023-06-11  9:19 ` Leon Romanovsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.