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:29:25 +0200
commit083532943322d0351908635494ac1a7650632a09 (patch)
tree7524e462e4cff8f07816e20a4528d305de9fa435
parentbb59af9ee286af3b560872c4edbe2734df3fa810 (diff)
RDMA/hns: Configure capacity of hns device (bsc#1104427
FATE#326416 bsc#1137236).
-rw-r--r--patches.drivers/RDMA-hns-Configure-capacity-of-hns-device.patch38
-rw-r--r--series.conf1
2 files changed, 39 insertions, 0 deletions
diff --git a/patches.drivers/RDMA-hns-Configure-capacity-of-hns-device.patch b/patches.drivers/RDMA-hns-Configure-capacity-of-hns-device.patch
new file mode 100644
index 0000000000..6f06739949
--- /dev/null
+++ b/patches.drivers/RDMA-hns-Configure-capacity-of-hns-device.patch
@@ -0,0 +1,38 @@
+From: Lijun Ou <oulijun@huawei.com>
+Date: Sun, 3 Feb 2019 16:13:07 +0800
+Subject: RDMA/hns: Configure capacity of hns device
+Patch-mainline: v5.1-rc1
+Git-commit: dad1f9802ecee3a21143293b2505e1b57b1ae525
+References: bsc#1104427 FATE#326416 bsc#1137236
+
+This patch adds new device capability for IB_DEVICE_MEM_MGT_EXTENSIONS to
+indicate device support for the following features:
+
+1. Fast register memory region.
+2. send with remote invalidate by frmr
+3. local invalidate memory regsion
+
+As well as adds the max depth of frmr page list len.
+
+Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
+Signed-off-by: Lijun Ou <oulijun@huawei.com>
+Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
+Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
+---
+ drivers/infiniband/hw/hns/hns_roce_main.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+--- a/drivers/infiniband/hw/hns/hns_roce_main.c
++++ b/drivers/infiniband/hw/hns/hns_roce_main.c
+@@ -226,6 +226,11 @@ static int hns_roce_query_device(struct
+ props->max_srq_sge = hr_dev->caps.max_srq_sges;
+ }
+
++ if (hr_dev->caps.flags & HNS_ROCE_CAP_FLAG_FRMR) {
++ props->device_cap_flags |= IB_DEVICE_MEM_MGT_EXTENSIONS;
++ props->max_fast_reg_page_list_len = HNS_ROCE_FRMR_MAX_PA;
++ }
++
+ return 0;
+ }
+
diff --git a/series.conf b/series.conf
index 5d1e84170c..e1a67b1e7c 100644
--- a/series.conf
+++ b/series.conf
@@ -45508,6 +45508,7 @@
patches.drivers/RDMA-hns-Fix-the-state-of-rereg-mr.patch
patches.drivers/RDMA-hns-Set-allocated-memory-to-zero-for-wrid.patch
patches.drivers/RDMA-hns-Delete-useful-prints-for-aeq-subtype-event.patch
+ patches.drivers/RDMA-hns-Configure-capacity-of-hns-device.patch
patches.drivers/RDMA-cxgb4-Remove-kref-accounting-for-sync-operation.patch
patches.drivers/iw_cxgb4-Make-function-read_tcb-static.patch
patches.drivers/RDMA-iwcm-Fix-string-truncation-error.patch