Home Home > GIT Browse > openSUSE-15.1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2019-06-07 13:27:44 +0200
committerThomas Bogendoerfer <tbogendoerfer@suse.de>2019-06-07 13:30:43 +0200
commit71d67b9e3f17d8fefc3c421544001ec23f5fec95 (patch)
treeade714cbe186ffdc804cf2270e019f79d20c285c
parent9fb06b8889eb86042e3368ab34ef25484216060c (diff)
RDMA/hns: Support to create 1M srq queue (bsc#1104427
-rw-r--r--patches.drivers/RDMA-hns-Support-to-create-1M-srq-queue.patch29
-rw-r--r--series.conf1
2 files changed, 30 insertions, 0 deletions
diff --git a/patches.drivers/RDMA-hns-Support-to-create-1M-srq-queue.patch b/patches.drivers/RDMA-hns-Support-to-create-1M-srq-queue.patch
new file mode 100644
index 0000000000..406090e514
--- /dev/null
+++ b/patches.drivers/RDMA-hns-Support-to-create-1M-srq-queue.patch
@@ -0,0 +1,29 @@
+From: chenglang <chenglang@huawei.com>
+Date: Sun, 7 Apr 2019 13:23:37 +0800
+Subject: RDMA/hns: Support to create 1M srq queue
+Patch-mainline: v5.2-rc1
+Git-commit: 2b277dae0679c8177f161278dbad035688838d6e
+References: bsc#1104427 FATE#326416
+
+In mhop 0 mode, 64*bt_num queues can be supported.
+In mhop 1 mode, 32K*bt_num queues can be supported.
+Config srqc_hop_num to 1 to support 1M SRQ queues.
+
+Signed-off-by: chenglang <chenglang@huawei.com>
+Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
+Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
+---
+ drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
++++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+@@ -1559,7 +1559,7 @@ static int hns_roce_v2_profile(struct hn
+ caps->qpc_hop_num = HNS_ROCE_CONTEXT_HOP_NUM;
+ caps->srqc_ba_pg_sz = 0;
+ caps->srqc_buf_pg_sz = 0;
+- caps->srqc_hop_num = HNS_ROCE_HOP_NUM_0;
++ caps->srqc_hop_num = HNS_ROCE_CONTEXT_HOP_NUM;
+ caps->cqc_ba_pg_sz = 0;
+ caps->cqc_buf_pg_sz = 0;
+ caps->cqc_hop_num = HNS_ROCE_CONTEXT_HOP_NUM;
diff --git a/series.conf b/series.conf
index 276b3312bc..5cba25bab8 100644
--- a/series.conf
+++ b/series.conf
@@ -46626,6 +46626,7 @@
patches.drivers/RDMA-hns-Fix-bad-endianess-of-port_pd-variable.patch
patches.drivers/IB-hfi1-Remove-WARN_ON-when-freeing-expected-receive.patch
patches.drivers/RDMA-iw_cxgb4-Always-disconnect-when-QP-is-transitio.patch
+ patches.drivers/RDMA-hns-Support-to-create-1M-srq-queue.patch
patches.drivers/RDMA-cxgb4-Fix-null-pointer-dereference-on-alloc_skb.patch
patches.drivers/RDMA-cxgb4-Fix-spelling-mistake-immedate-immediate.patch
patches.drivers/IB-hfi1-Add-debugfs-to-control-expansion-ROM-write-p.patch