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:20 +0200
commitbb59af9ee286af3b560872c4edbe2734df3fa810 (patch)
tree66dcbe67552939456da5daca51c9f5fd6850a494
parent963264a92d87702bebde9831d6e6e229f325617b (diff)
RDMA/hns: Delete useful prints for aeq subtype event
(bsc#1104427 FATE#326416 bsc#1126206).
-rw-r--r--patches.drivers/RDMA-hns-Delete-useful-prints-for-aeq-subtype-event.patch91
-rw-r--r--series.conf1
2 files changed, 92 insertions, 0 deletions
diff --git a/patches.drivers/RDMA-hns-Delete-useful-prints-for-aeq-subtype-event.patch b/patches.drivers/RDMA-hns-Delete-useful-prints-for-aeq-subtype-event.patch
new file mode 100644
index 0000000000..9288fac491
--- /dev/null
+++ b/patches.drivers/RDMA-hns-Delete-useful-prints-for-aeq-subtype-event.patch
@@ -0,0 +1,91 @@
+From: Yixian Liu <liuyixian@huawei.com>
+Date: Sun, 3 Feb 2019 16:13:06 +0800
+Subject: RDMA/hns: Delete useful prints for aeq subtype event
+Patch-mainline: v5.1-rc1
+Git-commit: e95c716c7faa0d0eede5eabb6fea2504709e25b6
+References: bsc#1104427 FATE#326416 bsc#1126206
+
+Current all messages printed for aeq subtype event are wrong. Thus,
+delete them and only the value of subtype event is printed.
+
+Signed-off-by: Yixian Liu <liuyixian@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_hw_v2.c | 57 +++--------------------------
+ 1 file changed, 6 insertions(+), 51 deletions(-)
+
+--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
++++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+@@ -4663,64 +4663,19 @@ static void hns_roce_irq_work_handle(str
+ dev_warn(dev, "Send queue drained.\n");
+ break;
+ case HNS_ROCE_EVENT_TYPE_WQ_CATAS_ERROR:
+- dev_err(dev, "Local work queue catastrophic error.\n");
++ dev_err(dev, "Local work queue 0x%x catas error, sub_type:%d\n",
++ qpn, irq_work->sub_type);
+ hns_roce_set_qps_to_err(irq_work->hr_dev, qpn);
+- switch (irq_work->sub_type) {
+- case HNS_ROCE_LWQCE_QPC_ERROR:
+- dev_err(dev, "QP %d, QPC error.\n", qpn);
+- break;
+- case HNS_ROCE_LWQCE_MTU_ERROR:
+- dev_err(dev, "QP %d, MTU error.\n", qpn);
+- break;
+- case HNS_ROCE_LWQCE_WQE_BA_ADDR_ERROR:
+- dev_err(dev, "QP %d, WQE BA addr error.\n", qpn);
+- break;
+- case HNS_ROCE_LWQCE_WQE_ADDR_ERROR:
+- dev_err(dev, "QP %d, WQE addr error.\n", qpn);
+- break;
+- case HNS_ROCE_LWQCE_SQ_WQE_SHIFT_ERROR:
+- dev_err(dev, "QP %d, WQE shift error.\n", qpn);
+- break;
+- default:
+- dev_err(dev, "Unhandled sub_event type %d.\n",
+- irq_work->sub_type);
+- break;
+- }
+ break;
+ case HNS_ROCE_EVENT_TYPE_INV_REQ_LOCAL_WQ_ERROR:
+- dev_err(dev, "Invalid request local work queue error.\n");
++ dev_err(dev, "Invalid request local work queue 0x%x error.\n",
++ qpn);
+ hns_roce_set_qps_to_err(irq_work->hr_dev, qpn);
+ break;
+ case HNS_ROCE_EVENT_TYPE_LOCAL_WQ_ACCESS_ERROR:
+- dev_err(dev, "Local access violation work queue error.\n");
++ dev_err(dev, "Local access violation work queue 0x%x error, sub_type:%d\n",
++ qpn, irq_work->sub_type);
+ hns_roce_set_qps_to_err(irq_work->hr_dev, qpn);
+- switch (irq_work->sub_type) {
+- case HNS_ROCE_LAVWQE_R_KEY_VIOLATION:
+- dev_err(dev, "QP %d, R_key violation.\n", qpn);
+- break;
+- case HNS_ROCE_LAVWQE_LENGTH_ERROR:
+- dev_err(dev, "QP %d, length error.\n", qpn);
+- break;
+- case HNS_ROCE_LAVWQE_VA_ERROR:
+- dev_err(dev, "QP %d, VA error.\n", qpn);
+- break;
+- case HNS_ROCE_LAVWQE_PD_ERROR:
+- dev_err(dev, "QP %d, PD error.\n", qpn);
+- break;
+- case HNS_ROCE_LAVWQE_RW_ACC_ERROR:
+- dev_err(dev, "QP %d, rw acc error.\n", qpn);
+- break;
+- case HNS_ROCE_LAVWQE_KEY_STATE_ERROR:
+- dev_err(dev, "QP %d, key state error.\n", qpn);
+- break;
+- case HNS_ROCE_LAVWQE_MR_OPERATION_ERROR:
+- dev_err(dev, "QP %d, MR operation error.\n", qpn);
+- break;
+- default:
+- dev_err(dev, "Unhandled sub_event type %d.\n",
+- irq_work->sub_type);
+- break;
+- }
+ break;
+ case HNS_ROCE_EVENT_TYPE_SRQ_LIMIT_REACH:
+ dev_warn(dev, "SRQ limit reach.\n");
diff --git a/series.conf b/series.conf
index 8ecc905e05..5d1e84170c 100644
--- a/series.conf
+++ b/series.conf
@@ -45507,6 +45507,7 @@
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-hns-Set-allocated-memory-to-zero-for-wrid.patch
+ patches.drivers/RDMA-hns-Delete-useful-prints-for-aeq-subtype-event.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