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:07 +0200
commit0d90f48d06f1b4ce20ea8fbd3095d579a3b72461 (patch)
tree0ebd6439a14de4c83bde6b92ee28c17ce64299cb
parentc3176cbf440e4ac9dd3e7482ff76951745d40c1c (diff)
RDMA/hns: Update the range of raq_psn field of qp context
(bsc#1104427 FATE#326416).
-rw-r--r--patches.drivers/RDMA-hns-Update-the-range-of-raq_psn-field-of-qp-con.patch29
-rw-r--r--series.conf1
2 files changed, 30 insertions, 0 deletions
diff --git a/patches.drivers/RDMA-hns-Update-the-range-of-raq_psn-field-of-qp-con.patch b/patches.drivers/RDMA-hns-Update-the-range-of-raq_psn-field-of-qp-con.patch
new file mode 100644
index 0000000000..cfa8610d7d
--- /dev/null
+++ b/patches.drivers/RDMA-hns-Update-the-range-of-raq_psn-field-of-qp-con.patch
@@ -0,0 +1,29 @@
+From: Lijun Ou <oulijun@huawei.com>
+Date: Sat, 23 Feb 2019 20:01:23 +0800
+Subject: RDMA/hns: Update the range of raq_psn field of qp context
+Patch-mainline: v5.2-rc1
+Git-commit: 834fa8cf6f7002706b02873fc0d16f9b06ef4819
+References: bsc#1104427 FATE#326416
+
+According to hip08 UM(User Manual), the raq_psn field size is [23:0].
+
+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.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
++++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h
+@@ -719,8 +719,8 @@ struct hns_roce_v2_qp_context {
+ #define V2_QPC_BYTE_148_RAQ_SYNDROME_S 24
+ #define V2_QPC_BYTE_148_RAQ_SYNDROME_M GENMASK(31, 24)
+
+-#define V2_QPC_BYTE_152_RAQ_PSN_S 8
+-#define V2_QPC_BYTE_152_RAQ_PSN_M GENMASK(31, 8)
++#define V2_QPC_BYTE_152_RAQ_PSN_S 0
++#define V2_QPC_BYTE_152_RAQ_PSN_M GENMASK(23, 0)
+
+ #define V2_QPC_BYTE_152_RAQ_TRRL_RTY_HEAD_S 24
+ #define V2_QPC_BYTE_152_RAQ_TRRL_RTY_HEAD_M GENMASK(31, 24)
diff --git a/series.conf b/series.conf
index ee2aec31c5..abb4bc920f 100644
--- a/series.conf
+++ b/series.conf
@@ -46612,6 +46612,7 @@
patches.drivers/dmaengine-tegra210-dma-free-dma-controller-in-remove.patch
patches.drivers/RDMA-hns-Only-assign-the-relatived-fields-of-psn-if-.patch
patches.drivers/RDMA-hns-Only-assign-the-fields-of-the-rq-psn-if-IB_.patch
+ patches.drivers/RDMA-hns-Update-the-range-of-raq_psn-field-of-qp-con.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