Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp28204lql; Fri, 12 Apr 2024 02:34:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUs0qZHyTKI5WKbFmN1rON7wH9E6cPbbL0jlveiZFmQ9DKgH5QRrFPV0MzAp7M98Z70NvNUdN5EO32O3wVeszOVaUKoIi5zdGmv3CnkeA== X-Google-Smtp-Source: AGHT+IFW2Ipm0ZztgCWP0DaZbKHWZGqawObgw5h49Jg5sWcjxS4GddTHZhIDihDjFbvVjbvZKK+8 X-Received: by 2002:a17:90a:df15:b0:2a1:fb5e:6028 with SMTP id gp21-20020a17090adf1500b002a1fb5e6028mr1921674pjb.20.1712914452620; Fri, 12 Apr 2024 02:34:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712914452; cv=pass; d=google.com; s=arc-20160816; b=YKjOSFzmfs/w4tyBs5tlramnN4ll7ETLIQlCicBDMSCp1QZogM2ChpjzoUiXizh02m VPD0afM5OczSG6nDDaHkAMKiKf0e0ciMcDblrArhRVpbbmmIz0CH9b+8B7pYTQQahSqm 7HVSkzBEzgeIjrwMKTWYfxy1XsuoRAWaRwHKZzp1/0lL+Mbl2yxkNBti0jDCRRJ0PDB5 q1qdYDdF6E1q1TlTpOZI/z3ioudwc6hhktwxdfJ0GocqHGA0K9gzsmzBDUhZ8NEQKW2f i6jbdVfhxoIAWFMI1rQL0lSA6In96qYdCfxg6eFmS7Lng7Z8SaFrDYcnAHSyUyv3QGm3 P+Qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=ab822tMrz3cgLV0vwh57ufzzMzQ1yHnSnWjOcQTK2Ck=; fh=KWvyQxL3Ff+3WPSMjlYu+P4255AmcMULAsFol6M1vNI=; b=DQq/fqCZYxs0DMD+1RRZn4LMVo8b3VIDWnhoL09HB9oi7eXB+uS7aBgH/hLNzX7Hsk ChBuCmI7KbUdbRf2SkGSLoFzPJ9JP3HwTC383quTZkPPocOiME2GzVAh58UIXOhNppge dAInFjYp/Zkk8DEdCVQYPq2x1ShKd4FTzCDiPNrN0oNxcHdvmClVWozLv6B6RMgf+w6g OFSK5ziw5nBenRq/joGwf2GuA0FIbvxN2lP8gz3wvXMom3sbrnwKIXLM9izQyAy9gndg 21BGOgrk06frq76PZ2joRf9ZzhR7gK96WEjpT2cK9KtyU5640gaEVKbVq3xvU5fci5Yz Ttkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=hisilicon.com dmarc=pass fromdomain=hisilicon.com); spf=pass (google.com: domain of linux-kernel+bounces-142394-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m2-20020a17090a71c200b002a5d501cb3esi3020781pjs.96.2024.04.12.02.34.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:34:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142394-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=hisilicon.com dmarc=pass fromdomain=hisilicon.com); spf=pass (google.com: domain of linux-kernel+bounces-142394-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0226B289604 for ; Fri, 12 Apr 2024 09:23:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6AA465787F; Fri, 12 Apr 2024 09:20:56 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3C64537F0; Fri, 12 Apr 2024 09:20:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712913655; cv=none; b=bxKMGYrEXMb7dRRGi2CF3ly8S+ndaep2ucrRR9C39Xeny9dHpGedrlhVpMRhQQ8lOkxqW1DBi4EVqWa3cnn7fB/lzgO2s+mBqmrVynCNt2hYIVOlgKM1QmjXmEayFi890T+W5EKp79/SToy+Nmb974QkISDNo7kEL1WrLdk5RmU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712913655; c=relaxed/simple; bh=miXo3Y7gGIZJwg82ElsSMWgwYfx5iDw2EmpUkZqMiW8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jZt5KxwTHAw2NRlCN4/YkUaX8KpQ78IUd7DUJwBy3ZdmRhx2YXaa/69B1V797k64i6PpAfiZ8ghU6tbdHu3cyf6nVSKYEZRKSkb7cLkk4HExlAqrq+Ce4KVsGJm/fWfCYIlWO5yMYu6GUFMrFHcqGNuH+hkXqfWBedGY50LSx/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=hisilicon.com; spf=pass smtp.mailfrom=hisilicon.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=hisilicon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hisilicon.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VG9xz4njGzYdP5; Fri, 12 Apr 2024 17:19:51 +0800 (CST) Received: from kwepemi500006.china.huawei.com (unknown [7.221.188.68]) by mail.maildlp.com (Postfix) with ESMTPS id AFD33140AC1; Fri, 12 Apr 2024 17:20:50 +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_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Apr 2024 17:20:50 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH for-next 10/10] RDMA/hns: Modify the print level of CQE error Date: Fri, 12 Apr 2024 17:16:16 +0800 Message-ID: <20240412091616.370789-11-huangjunxian6@hisilicon.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20240412091616.370789-1-huangjunxian6@hisilicon.com> References: <20240412091616.370789-1-huangjunxian6@hisilicon.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500006.china.huawei.com (7.221.188.68) From: Chengchang Tang Too much print may lead to a panic in kernel. Change ibdev_err() to ibdev_err_ratelimited(), and change the printing level of cqe dump to debug level. Fixes: 7c044adca272 ("RDMA/hns: Simplify the cqe code of poll cq") Signed-off-by: Chengchang Tang Signed-off-by: Junxian Huang --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 5d526b5c4b81..4287818a737f 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -3713,8 +3713,9 @@ static void get_cqe_status(struct hns_roce_dev *hr_dev, struct hns_roce_qp *qp, wc->status == IB_WC_WR_FLUSH_ERR)) return; - ibdev_err(&hr_dev->ib_dev, "error cqe status 0x%x:\n", cqe_status); - print_hex_dump(KERN_ERR, "", DUMP_PREFIX_NONE, 16, 4, cqe, + ibdev_err_ratelimited(&hr_dev->ib_dev, "error cqe status 0x%x:\n", + cqe_status); + print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_NONE, 16, 4, cqe, cq->cqe_size, false); wc->vendor_err = hr_reg_read(cqe, CQE_SUB_STATUS); -- 2.30.0