Skip to content

Commit 05d6a4d

Browse files
oulijunjgunthorpe
authored andcommitted
RDMA/hns: Bugfix for cq record db for kernel
When use cq record db for kernel, it needs to set the hr_cq->db_en to 1 and configure the dma address of record cq db of qp context. Fixes: 86188a8 ("RDMA/hns: Support cq record doorbell for kernel space") Signed-off-by: Lijun Ou <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent f4602cb commit 05d6a4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/infiniband/hw/hns/hns_roce_cq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ struct ib_cq *hns_roce_ib_create_cq(struct ib_device *ib_dev,
377377

378378
hr_cq->set_ci_db = hr_cq->db.db_record;
379379
*hr_cq->set_ci_db = 0;
380+
hr_cq->db_en = 1;
380381
}
381382

382383
/* Init mmt table and write buff address to mtt table */

0 commit comments

Comments
 (0)