Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3135426rdg; Tue, 17 Oct 2023 05:56:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHre/+QF+BY9sZil59OmxdBfWicJ4RaRhcVGHqs2XBDdY/Na/Oc0NMKvaGL4Cqje6KCWGoM X-Received: by 2002:a17:903:1c4:b0:1ca:2cd0:2410 with SMTP id e4-20020a17090301c400b001ca2cd02410mr2719125plh.53.1697547404533; Tue, 17 Oct 2023 05:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697547404; cv=none; d=google.com; s=arc-20160816; b=F5VSZs/t779zm6JXuZy147y2GlMkk+DW0MTPBAu+YIoF5jY4wWT+hzxMwB7AVwu/zR UBOillRCPyj6kzeyoucXUHi/+1c4o4PjmCZOD7FUn6vb3FgXna+loww0nB0CSK3UneYJ 5oIAwP8qXsdLiY9Kntpne93SwverA9JRTpMu1V9nJqs+skyz0v5aCbt/mOiF7PmEYIfc 5MEa0t9OkzfKrh3Vxf1UbDO9YiUTpAaetN1PkusVFQIqL2txpVaa2MB3boe3YIVqMOPS lQ8BlqsIi/K4bHSze7VpZwHQU59HDKW0AjO4wElK12Tws3J4nRS8tOJmBnJ2kHD/w2/9 TciQ== 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 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id i13-20020a17090332cd00b001c61bdd8e89si1800053plr.150.2023.10.17.05.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:56:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 8F317802A1DC; Tue, 17 Oct 2023 05:56:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343645AbjJQM4B (ORCPT + 99 others); Tue, 17 Oct 2023 08:56:01 -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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:56:37 -0700 (PDT) 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"); -- 2.30.0