aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
diff options
context:
space:
mode:
authorYangyang Li <liyangyang20@huawei.com>2019-06-24 19:47:47 +0800
committerJason Gunthorpe <jgg@mellanox.com>2019-07-05 12:02:00 -0300
commitf5662b4ddc9db20033f310694edbd3fc7041f6f2 (patch)
tree061030dc19915ac05253416430607922db908e15 /drivers/infiniband/hw/hns/hns_roce_hw_v2.c
parentRDMA/hns: Fixup qp release bug (diff)
downloadlinux-dev-f5662b4ddc9db20033f310694edbd3fc7041f6f2.tar.xz
linux-dev-f5662b4ddc9db20033f310694edbd3fc7041f6f2.zip
RDMA/hns: Modify ba page size for cqe
Currently, the depth of cq only supports 64K. According to the UM, the depth of cq is up to 4M, Therefore the ba page size of cqe was modified to support the maximum specification of cq depth. Signed-off-by: Yangyang Li <liyangyang20@huawei.com> Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index 4ae547d96cd4..3559c0cf112d 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@ -1616,7 +1616,7 @@ static int hns_roce_v2_profile(struct hns_roce_dev *hr_dev)
caps->wqe_sq_hop_num = 2;
caps->wqe_sge_hop_num = 1;
caps->wqe_rq_hop_num = 2;
- caps->cqe_ba_pg_sz = 0;
+ caps->cqe_ba_pg_sz = 6;
caps->cqe_buf_pg_sz = 0;
caps->cqe_hop_num = HNS_ROCE_CQE_HOP_NUM;
caps->srqwqe_ba_pg_sz = 0;