RDMA/hns: Modify ba page size for cqe
authorYangyang Li <liyangyang20@huawei.com>
Mon, 24 Jun 2019 11:47:47 +0000 (19:47 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 5 Jul 2019 15:02:00 +0000 (12:02 -0300)
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>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c

index 4ae547d96cd4b61bd74b923b37ec2ed04794b5b4..3559c0cf112dc2d556cadb19b607aeb46111578a 100644 (file)
@@ -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;