From patchwork Tue Oct 17 12:52:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junxian Huang X-Patchwork-Id: 154258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4111752vqb; Tue, 17 Oct 2023 05:57:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7lffW6a2wm0vJLi58dGf/P+6Z3/I/9GFTjiKe/j1wAV7c4spfNhp+qFQhCZX6KbDD1cxa X-Received: by 2002:a17:903:6c8:b0:1ca:273d:22f with SMTP id kj8-20020a17090306c800b001ca273d022fmr2232785plb.0.1697547440636; Tue, 17 Oct 2023 05:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697547440; cv=none; d=google.com; s=arc-20160816; b=DnlTbIoKkHgykTeLaWJOkuDbUzegEn68rUDp8IMDt91Wc2F/yib/1R0Mckt/g4GtYf 35QYh1SqwhnP8cs9kllNiFgdlqHSV75yxYakg8D/+/DfSqPpYg3X04sRBvU3QB3XOXfg 9QUv9rBUNKqzp5hpJMWddjVXo1fgejoC+XfCFktJaoVPl+tn0nu/79351i6eQGi9Zhth WszComy9XoUEz4JH5XWo0tlxMypaReMJpKfPf9nJLOhq8976Ut7hfxCVVEhbKqHcwGSu +5NKA7GVhe8W0HWeEP43AkWWuw0jfglNaZLu7VpuPYi/g40jsIkIgo/HQLjIw0aq4iw4 Gaww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dBo2/18qnBKVhzaxmjqsCcScYZZzgCsT8ll1XNCCRi0=; fh=KWvyQxL3Ff+3WPSMjlYu+P4255AmcMULAsFol6M1vNI=; b=yTlOzbabnXvxhU0YzfboLfu9IiIZBEZI68LZRBQ7Jjqxv8jcj5liB01z7/T4/J0Haf Ul6zoOA0eiWU2oEunOj3cXHse7BBVlY6cgJ/TZBk99nAC2LcdGcXGVPKtBijJlocnRoR oNE9omLz9Lm380gwokLrl2sfHaYYUS/VPZs5bWTmnNTXs7jLRzFIUI0Sw75I5FnKFRzL DlcD3F1nbxeZmorSuHZkS4XtlDwvzhNC41wjsU+XVHeeU3ZGsU5qh7i4XgdhwGEk5VJo nkZ+OzXCuzE0t7JYf2dDDTIzcp977a0TGMN5ro8/FZtEeA79ewfoqr7cApcwzmqoyHDR Rp/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id li11-20020a170903294b00b001c9fe071f2esi1585395plb.128.2023.10.17.05.57.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:57:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1ACF38092D91; Tue, 17 Oct 2023 05:56:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343664AbjJQM4C (ORCPT + 19 others); Tue, 17 Oct 2023 08:56:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234843AbjJQMz5 (ORCPT ); Tue, 17 Oct 2023 08:55:57 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39AB3FA; Tue, 17 Oct 2023 05:55:54 -0700 (PDT) Received: from kwepemi500006.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S8v3w2w8nzvQC5; Tue, 17 Oct 2023 20:51:08 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemi500006.china.huawei.com (7.221.188.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Tue, 17 Oct 2023 20:55:51 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH for-rc 1/7] RDMA/hns: Fix printing level of asynchronous events Date: Tue, 17 Oct 2023 20:52:33 +0800 Message-ID: <20231017125239.164455-2-huangjunxian6@hisilicon.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20231017125239.164455-1-huangjunxian6@hisilicon.com> References: <20231017125239.164455-1-huangjunxian6@hisilicon.com> MIME-Version: 1.0 X-Originating-IP: [10.67.165.2] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500006.china.huawei.com (7.221.188.68) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:56:11 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780007504963155611 X-GMAIL-MSGID: 1780007504963155611 From: Chengchang Tang 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: b00a92c8f2ca ("RDMA/hns: Move all prints out of irq handle") Signed-off-by: Chengchang Tang Signed-off-by: Junxian Huang --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index d82daff2d9bd..2b8f6489ab3d 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -5804,7 +5804,7 @@ static void hns_roce_irq_work_handle(struct work_struct *work) case HNS_ROCE_EVENT_TYPE_COMM_EST: break; case HNS_ROCE_EVENT_TYPE_SQ_DRAINED: - ibdev_warn(ibdev, "send queue drained.\n"); + ibdev_dbg(ibdev, "send queue drained.\n"); break; case HNS_ROCE_EVENT_TYPE_WQ_CATAS_ERROR: ibdev_err(ibdev, "local work queue 0x%x catast error, sub_event type is: %d\n", @@ -5819,10 +5819,10 @@ static void hns_roce_irq_work_handle(struct work_struct *work) irq_work->queue_num, irq_work->sub_type); break; case HNS_ROCE_EVENT_TYPE_SRQ_LIMIT_REACH: - ibdev_warn(ibdev, "SRQ limit reach.\n"); + ibdev_dbg(ibdev, "SRQ limit reach.\n"); break; case HNS_ROCE_EVENT_TYPE_SRQ_LAST_WQE_REACH: - ibdev_warn(ibdev, "SRQ last wqe reach.\n"); + ibdev_dbg(ibdev, "SRQ last wqe reach.\n"); break; case HNS_ROCE_EVENT_TYPE_SRQ_CATAS_ERROR: ibdev_err(ibdev, "SRQ catas error.\n");