Skip to content

Commit f8c549a

Browse files
larrchjgunthorpe
authored andcommitted
RDMA/hns: Ownerbit mode add control field
The ownerbit mode is for external card mode. Make it controlled by the firmware. Fixes: aba457c ("RDMA/hns: Support owner mode doorbell") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lang Cheng <[email protected]> Signed-off-by: Wenpeng Liang <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 260f64a commit f8c549a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4108,6 +4108,9 @@ static void modify_qp_reset_to_init(struct ib_qp *ibqp,
41084108
if (hr_qp->en_flags & HNS_ROCE_QP_CAP_RQ_RECORD_DB)
41094109
hr_reg_enable(context, QPC_RQ_RECORD_EN);
41104110

4111+
if (hr_qp->en_flags & HNS_ROCE_QP_CAP_OWNER_DB)
4112+
hr_reg_enable(context, QPC_OWNER_MODE);
4113+
41114114
hr_reg_write(context, QPC_RQ_DB_RECORD_ADDR_L,
41124115
lower_32_bits(hr_qp->rdb.dma) >> 1);
41134116
hr_reg_write(context, QPC_RQ_DB_RECORD_ADDR_H,

0 commit comments

Comments
 (0)