Skip to content

Commit 9faef73

Browse files
Chengchang Tangrleon
authored andcommitted
RDMA/hns: Fix printing level of asynchronous events
The current driver will print all asynchronous events. Some of the print levels are set improperly, e.g. SRQ limit reach and SRQ last wqe reach, which may also occur during normal operation of the software. Currently, the information of these event is printed as a warning, which causes a large amount of printing even during normal use of the application. As a result, the service performance deteriorates. This patch fixes the printing storms by modifying the print level. Fixes: b00a92c ("RDMA/hns: Move all prints out of irq handle") Signed-off-by: Chengchang Tang <[email protected]> Signed-off-by: Junxian Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 465d6b4 commit 9faef73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/infiniband/hw/hns/hns_roce_hw_v2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5841,7 +5841,7 @@ static void hns_roce_irq_work_handle(struct work_struct *work)
58415841
case HNS_ROCE_EVENT_TYPE_COMM_EST:
58425842
break;
58435843
case HNS_ROCE_EVENT_TYPE_SQ_DRAINED:
5844-
ibdev_warn(ibdev, "send queue drained.\n");
5844+
ibdev_dbg(ibdev, "send queue drained.\n");
58455845
break;
58465846
case HNS_ROCE_EVENT_TYPE_WQ_CATAS_ERROR:
58475847
ibdev_err(ibdev, "local work queue 0x%x catast error, sub_event type is: %d\n",
@@ -5856,10 +5856,10 @@ static void hns_roce_irq_work_handle(struct work_struct *work)
58565856
irq_work->queue_num, irq_work->sub_type);
58575857
break;
58585858
case HNS_ROCE_EVENT_TYPE_SRQ_LIMIT_REACH:
5859-
ibdev_warn(ibdev, "SRQ limit reach.\n");
5859+
ibdev_dbg(ibdev, "SRQ limit reach.\n");
58605860
break;
58615861
case HNS_ROCE_EVENT_TYPE_SRQ_LAST_WQE_REACH:
5862-
ibdev_warn(ibdev, "SRQ last wqe reach.\n");
5862+
ibdev_dbg(ibdev, "SRQ last wqe reach.\n");
58635863
break;
58645864
case HNS_ROCE_EVENT_TYPE_SRQ_CATAS_ERROR:
58655865
ibdev_err(ibdev, "SRQ catas error.\n");

0 commit comments

Comments
 (0)