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:10 +0200
commit0712e2d32715e3d7340cf72a36ebd06177105702 (patch)
tree9d5dce2beac5b5d32be5efbba63d846e63927300
parent7cd88e496e1a4f887a2214421eaf4b3f4f11e87b (diff)
RDMA/hns: Fix the state of rereg mr (bsc#1104427 FATE#326416
bsc#1137236).
-rw-r--r--patches.drivers/RDMA-hns-Fix-the-state-of-rereg-mr.patch29
-rw-r--r--series.conf1
2 files changed, 30 insertions, 0 deletions
diff --git a/patches.drivers/RDMA-hns-Fix-the-state-of-rereg-mr.patch b/patches.drivers/RDMA-hns-Fix-the-state-of-rereg-mr.patch
new file mode 100644
index 0000000000..40bf3f4bf9
--- /dev/null
+++ b/patches.drivers/RDMA-hns-Fix-the-state-of-rereg-mr.patch
@@ -0,0 +1,29 @@
+From: Yixian Liu <liuyixian@huawei.com>
+Date: Sun, 3 Feb 2019 16:13:04 +0800
+Subject: RDMA/hns: Fix the state of rereg mr
+Patch-mainline: v5.1-rc1
+Git-commit: ab22bf05216a6bb4812448f3a8609489047cf311
+References: bsc#1104427 FATE#326416 bsc#1137236
+
+The state of mr after reregister operation should be set to valid
+state. Otherwise, it will keep the same as the state before reregistered.
+
+Signed-off-by: Yixian Liu <liuyixian@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 | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
++++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+@@ -2195,6 +2195,9 @@ static int hns_roce_v2_rereg_write_mtpt(
+ struct hns_roce_v2_mpt_entry *mpt_entry = mb_buf;
+ int ret = 0;
+
++ roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_MPT_ST_M,
++ V2_MPT_BYTE_4_MPT_ST_S, V2_MPT_ST_VALID);
++
+ if (flags & IB_MR_REREG_PD) {
+ roce_set_field(mpt_entry->byte_4_pd_hop_st, V2_MPT_BYTE_4_PD_M,
+ V2_MPT_BYTE_4_PD_S, pdn);
diff --git a/series.conf b/series.conf
index 413d97ee79..aae4910af4 100644
--- a/series.conf
+++ b/series.conf
@@ -45505,6 +45505,7 @@
patches.drivers/RDMA-mlx5-Fix-memory-leak-in-case-we-fail-to-add-an-.patch
patches.drivers/RDMA-bnxt_re-fix-or-ing-of-data-into-an-uninitialize.patch
patches.drivers/RDMA-hns-Limit-minimum-ROCE-CQ-depth-to-64.patch
+ patches.drivers/RDMA-hns-Fix-the-state-of-rereg-mr.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