From 391ff9efd8f6719883d01d2becd18bb37e6e3374 Mon Sep 17 00:00:00 2001 From: Yangyang Li Date: Wed, 22 May 2019 11:15:13 +0800 Subject: [PATCH] RDMA/hns: Modify ba page size for cqe driver inclusion category: bugfix bugzilla: NA CVE: NA 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 maximun specification of cq depth. Feature or Bugfix:Bugfix Signed-off-by: Yangyang Li Signed-off-by: liyangyang (M) Reviewed-by: liuyixian Reviewed-by: Yang Yingliang Signed-off-by: Yang Yingliang --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index e7226cf5c0eb..b3bf14d4b844 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -1824,7 +1824,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; -- GitLab