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:23 +0200
commit3bd66e2adb3057473c6d8f07ebbbcf596c3624da (patch)
treecc4b8908db47c9f488a8696763da7a38df298dee
parent21c24137590ff6a84b850b48eb2fd5522abb21d7 (diff)
RDMA/hns: Bugfix for sending with invalidate (bsc#1104427
FATE#326416 bsc#1137236).
-rw-r--r--patches.drivers/RDMA-hns-Bugfix-for-sending-with-invalidate.patch29
-rw-r--r--series.conf1
2 files changed, 30 insertions, 0 deletions
diff --git a/patches.drivers/RDMA-hns-Bugfix-for-sending-with-invalidate.patch b/patches.drivers/RDMA-hns-Bugfix-for-sending-with-invalidate.patch
new file mode 100644
index 0000000000..0ab666db0e
--- /dev/null
+++ b/patches.drivers/RDMA-hns-Bugfix-for-sending-with-invalidate.patch
@@ -0,0 +1,29 @@
+From: Lijun Ou <oulijun@huawei.com>
+Date: Sat, 23 Feb 2019 20:01:26 +0800
+Subject: RDMA/hns: Bugfix for sending with invalidate
+Patch-mainline: v5.2-rc1
+Git-commit: 82342e493b7e53f5e0d0698a48190f05e84d6690
+References: bsc#1104427 FATE#326416 bsc#1137236
+
+According to IB protocol, the send with invalidate operation will not
+invalidate mr that was created through a register mr or reregister mr.
+
+Fixes: e93df0108579 ("RDMA/hns: Support local invalidate for hip08 in kernel space")
+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_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
+@@ -2155,7 +2155,7 @@ static int hns_roce_v2_write_mtpt(void *
+ V2_MPT_BYTE_4_PD_S, mr->pd);
+
+ roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_RA_EN_S, 0);
+- roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_R_INV_EN_S, 1);
++ roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_R_INV_EN_S, 0);
+ roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_L_INV_EN_S, 1);
+ roce_set_bit(mpt_entry->byte_8_mw_cnt_en, V2_MPT_BYTE_8_BIND_EN_S,
+ (mr->access & IB_ACCESS_MW_BIND ? 1 : 0));
diff --git a/series.conf b/series.conf
index 3e85cc37fe..ba477bc702 100644
--- a/series.conf
+++ b/series.conf
@@ -46615,6 +46615,7 @@
patches.drivers/RDMA-hns-Update-the-range-of-raq_psn-field-of-qp-con.patch
patches.drivers/RDMA-hns-Only-assgin-some-fields-if-the-relatived-at.patch
patches.drivers/RDMA-hns-Hide-error-print-information-with-roce-vf-d.patch
+ patches.drivers/RDMA-hns-Bugfix-for-sending-with-invalidate.patch
patches.drivers/RDMA-i40iw-Handle-workqueue-allocation-failure.patch
patches.fixes/overflow-Fix-Wtype-limits-compilation-warnings.patch
patches.drivers/IB-hfi1-Fix-two-format-strings.patch