diff options
author | oulijun <oulijun@huawei.com> | 2018-05-22 08:47:14 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-05-23 17:45:44 -0400 |
commit | 05d6a4ddb654ef6f2fbbcf9dcb3b263184baa8e4 (patch) | |
tree | 34a4758e54a76b3135c32b1d31c6686ec2044b90 | |
parent | f4602cbb0a2478dda8238a4f382867da425daa8e (diff) |
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: 86188a8810ed ("RDMA/hns: Support cq record doorbell for kernel space")
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_cq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_cq.c b/drivers/infiniband/hw/hns/hns_roce_cq.c index 14734d0d0b76..3a485f50fede 100644 --- a/drivers/infiniband/hw/hns/hns_roce_cq.c +++ b/drivers/infiniband/hw/hns/hns_roce_cq.c | |||
@@ -377,6 +377,7 @@ struct ib_cq *hns_roce_ib_create_cq(struct ib_device *ib_dev, | |||
377 | 377 | ||
378 | hr_cq->set_ci_db = hr_cq->db.db_record; | 378 | hr_cq->set_ci_db = hr_cq->db.db_record; |
379 | *hr_cq->set_ci_db = 0; | 379 | *hr_cq->set_ci_db = 0; |
380 | hr_cq->db_en = 1; | ||
380 | } | 381 | } |
381 | 382 | ||
382 | /* Init mmt table and write buff address to mtt table */ | 383 | /* Init mmt table and write buff address to mtt table */ |