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:36 +0200
commite5b08e82f077fccf224ef26a724faa6f345c5cd4 (patch)
tree830cfeb58191a421f6ced933c231c6626f2714fc
parent81fc41e20ac1ece883fe349702c9c2958b3f175a (diff)
RDMA/hns: Bugfix for set hem of SCC (bsc#1104427 FATE#326416
bsc#1137236).
-rw-r--r--patches.drivers/RDMA-hns-Bugfix-for-set-hem-of-SCC.patch60
-rw-r--r--series.conf1
2 files changed, 61 insertions, 0 deletions
diff --git a/patches.drivers/RDMA-hns-Bugfix-for-set-hem-of-SCC.patch b/patches.drivers/RDMA-hns-Bugfix-for-set-hem-of-SCC.patch
new file mode 100644
index 0000000000..375f057966
--- /dev/null
+++ b/patches.drivers/RDMA-hns-Bugfix-for-set-hem-of-SCC.patch
@@ -0,0 +1,60 @@
+From: Yangyang Li <liyangyang20@huawei.com>
+Date: Sat, 16 Feb 2019 20:10:25 +0800
+Subject: RDMA/hns: Bugfix for set hem of SCC
+Patch-mainline: v5.1-rc1
+Git-commit: 6ac16e403900a98f9b330daa5f0d89f76a24c6eb
+References: bsc#1104427 FATE#326416 bsc#1137236
+
+The method of set hem for scc context is different from other contexts. It
+should notify the hardware with the detailed idx in bt0 for scc, while for
+other contexts, it only need to notify the bt step and the hardware will
+calculate the idx.
+
+Here fixes the following error when unloading the hip08 driver:
+
+[ 123.570768] {1}[Hardware Error]: Hardware error from APEI Generic Hardware Error Source: 0
+[ 123.579023] {1}[Hardware Error]: event severity: recoverable
+[ 123.584670] {1}[Hardware Error]: Error 0, type: recoverable
+[ 123.590317] {1}[Hardware Error]: section_type: PCIe error
+[ 123.595877] {1}[Hardware Error]: version: 4.0
+[ 123.600395] {1}[Hardware Error]: command: 0x0006, status: 0x0010
+[ 123.606562] {1}[Hardware Error]: device_id: 0000:7d:00.0
+[ 123.612034] {1}[Hardware Error]: slot: 0
+[ 123.616120] {1}[Hardware Error]: secondary_bus: 0x00
+[ 123.621245] {1}[Hardware Error]: vendor_id: 0x19e5, device_id: 0xa222
+[ 123.627847] {1}[Hardware Error]: class_code: 000002
+[ 123.632977] hns3 0000:7d:00.0: aer_status: 0x00000000, aer_mask: 0x00000000
+[ 123.639928] hns3 0000:7d:00.0: aer_layer=Transaction Layer, aer_agent=Receiver ID
+[ 123.647400] hns3 0000:7d:00.0: aer_uncor_severity: 0x00000000
+[ 123.653136] hns3 0000:7d:00.0: PCI error detected, state(=1)!!
+[ 123.658959] hns3 0000:7d:00.0: ROCEE uncorrected RAS error identified
+[ 123.665395] hns3 0000:7d:00.0: ROCEE RAS AXI rresp error
+[ 123.670713] hns3 0000:7d:00.0: requesting reset due to PCI error
+[ 123.676715] hns3 0000:7d:00.0: received reset event , reset type is 5
+[ 123.683147] hns3 0000:7d:00.0: AER: Device recovery successful
+[ 123.688978] hns3 0000:7d:00.0: PF Reset requested
+[ 123.693684] hns3 0000:7d:00.0: PF failed(=-5) to send mailbox message to VF
+[ 123.700633] hns3 0000:7d:00.0: inform reset to vf(1) failded -5!
+
+Fixes: 6a157f7d1b14 ("RDMA/hns: Add SCC context allocation support for hip08")
+Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
+Reviewed-by: Yixian Liu <liuyixian@huawei.com>
+Reviewed-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 | 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
+@@ -2945,6 +2945,9 @@ static int hns_roce_v2_set_hem(struct hn
+ if (IS_ERR(mailbox))
+ return PTR_ERR(mailbox);
+
++ if (table->type == HEM_TYPE_SCCC)
++ obj = mhop.l0_idx;
++
+ if (check_whether_last_step(hop_num, step_idx)) {
+ hem = table->hem[hem_idx];
+ for (hns_roce_hem_first(hem, &iter);
diff --git a/series.conf b/series.conf
index ce9109016b..418e99db2f 100644
--- a/series.conf
+++ b/series.conf
@@ -45511,6 +45511,7 @@
patches.drivers/RDMA-hns-Configure-capacity-of-hns-device.patch
patches.drivers/RDMA-cxgb4-Remove-kref-accounting-for-sync-operation.patch
patches.drivers/RDMA-hns-Modify-qp-cq-pd-specification-according-to-.patch
+ patches.drivers/RDMA-hns-Bugfix-for-set-hem-of-SCC.patch
patches.drivers/iw_cxgb4-Make-function-read_tcb-static.patch
patches.drivers/RDMA-iwcm-Fix-string-truncation-error.patch
patches.drivers/IB-rdmavt-Fix-loopback-send-with-invalidate-ordering.patch