RDMA/hns: Use new SQ doorbell register for HIP09
Subsystems (2)
PATCH 1/1 RDMA/hns: Use new SQ doorbell register for HIP09
From: Lang Cheng <[email protected]>
HIP09 uses new address space to map SQ doorbell registers, the doorbell of each QP is isolated based on the size of 64KB, which can improve the performance in concurrency scenarios.
Signed-off-by Lang Cheng <[email protected]>
Signed-off-by Weihang Li <[email protected]>
--- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 3 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 49 ++++++++++++++++-------------- 2 files changed, 28 insertions(+), 24 deletions(-)
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +1 -2
@@ -681,8 +681,7 @@ static void write_dwqe(struct hns_roce_dev *hr_dev, struct hns_roce_qp *qp,roce_set_field (rc_sq_wqe->byte_4,V2_RC_SEND_WQE_BYTE_4_WQE_INDEX_M ,V2_RC_SEND_WQE_BYTE_4_WQE_INDEX_S , qp->sq.head); -hns_roce_write512 (hr_dev, wqe, hr_dev->mem_base + -HNS_ROCE_DWQE_SIZE * qp->ibqp.qp_num); +hns_roce_write512 (hr_dev, wqe, qp->sq.db_reg_l); } static int hns_roce_v2_post_send(struct ib_qp *ibqp,
drivers/infiniband/hw/hns/hns_roce_qp.c +27 -22
96 lines not on this page · raw message
Signature · 1 line
2.8.1
Quoted 6 lines · Weihang Li
From: Lang Cheng <[email protected]>
HIP09 uses new address space to map SQ doorbell registers, the doorbell of each QP is isolated based on the size of 64KB, which can improve the performance in concurrency scenarios.
Quoted 6 lines
Signed-off-by Lang Cheng <[email protected]>Signed-off-by Weihang Li <[email protected]>--- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 3 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 49 ++++++++++++++++-------------- 2 files changed, 28 insertions(+), 24 deletions(-)
Applied to for-next, thanks
Jason