Skip to content

RDMA/bnxt_re: Doorbell Drop Prevention

Selvin Xavier linux-rdma 3 versions – Applied

Status from this message: Applied to for-next, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 1 replyApplied
  2. v27 patches 1 replySuperseded
  3. v17 patches 0 repliesSuperseded

Changes in v3 from the cover letter

Fix the build warning

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7bnxt_en: Update HW interface headersdrivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h+54 -00 replies
2/7bnxt_en: Share the bar0 address with the RoCE driverdrivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h+2 -10 replies
3/7RDMA/bnxt_re: Initialize Doorbell pacing featuredrivers/infiniband/hw/bnxt_re/bnxt_re.h drivers/infiniband/hw/bnxt_re/main.c drivers/infiniband/hw/bnxt_re/qplib_res.h+137 -00 replies
4/7RDMA/bnxt_re: Enable pacing support for the user appsdrivers/infiniband/hw/bnxt_re/ib_verbs.c include/uapi/rdma/bnxt_re-abi.h+3 -00 replies
5/7RDMA/bnxt_re: Update alloc_page uapi for pacingdrivers/infiniband/hw/bnxt_re/ib_verbs.c drivers/infiniband/hw/bnxt_re/ib_verbs.h include/uapi/rdma/bnxt_re-abi.h+36 -30 replies
6/7RDMA/bnxt_re: Implement doorbell pacing algorithmdrivers/infiniband/hw/bnxt_re/bnxt_re.h drivers/infiniband/hw/bnxt_re/main.c+129 -00 replies
7/7RDMA/bnxt_re: Add a new uapi for driver notificationdrivers/infiniband/hw/bnxt_re/ib_verbs.c include/uapi/rdma/bnxt_re-abi.h+19 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH for-next v3 0/7] RDMA/bnxt_re: Doorbell Drop Prevention

The idea behind this series is to prevent Doorbell drops on some of the Broadcom adapters that require Doorbell moderation. This is achieved by pacing the doorbell writes into the hardware FIFO. The rate at which individual doorbells are written needs to be dynamically adjusted, because it depends on the ability of the hardware to drain the FIFO and on the number and behavior of individual doorbell writers. When congestion is detected by the user library, it notifies the driver and driver adjust the pacing parameters dynamically in a shared page, which will be used for pacing the Doorbells.

Currently this feature is targeted only for user applications. The corresponding user lib patch is in the pull request.
https://github.com/linux-rdma/rdma-core/pull/1360

Thanks,
Selvin Xavier

v2 -> v3:
Fix the build warning

v1 -> v2:
Rebased the patches on top of the latest for-next branch

Chandramohan Akula (7):
bnxt_en: Update HW interface headers
bnxt_en: Share the bar0 address with the RoCE driver RDMA/bnxt_re: Initialize Doorbell pacing feature RDMA/bnxt_re: Enable pacing support for the user apps RDMA/bnxt_re: Update alloc_page uapi for pacing RDMA/bnxt_re: Implement doorbell pacing algorithm RDMA/bnxt_re: Add a new uapi for driver notification

 drivers/infiniband/hw/bnxt_re/bnxt_re.h       |  27 ++++
 drivers/infiniband/hw/bnxt_re/ib_verbs.c      |  52 +++++-
 drivers/infiniband/hw/bnxt_re/ib_verbs.h      |   2 +
 drivers/infiniband/hw/bnxt_re/main.c          | 220 ++++++++++++++++++++++++++
 drivers/infiniband/hw/bnxt_re/qplib_res.h     |  19 +++
 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h |  54 +++++++
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c |   2 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h |   1 +
 include/uapi/rdma/bnxt_re-abi.h               |   7 +
 9 files changed, 380 insertions(+), 4 deletions(-)
Signature · 1 line
2.5.5