From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CA9D4148851; Thu, 13 Jun 2024 12:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718281027; cv=none; b=ckNuK9fjP/XOQ6gT30uth9vFfrQ4VvUkWAUbHeDoiT2k4wS7bWHECvqn2OcI34o+XW9T2WDLq1pKTT/sMPK+XIL2AuNstfDlxICLpqYXJkH4k0nkkrkmMi81cMWSRgNZW2bfl7Uyw3hkoJGCB0VohFrlxRI8gkZgq+nN60geZyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718281027; c=relaxed/simple; bh=QyusormFuD5vpeTs5+qpetVJ5BCmydERi0ZW+G1N1qY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nQCHiqj7zSAFy5X3oZMsxybGAXykQM9FVGk2lKrKkTU9VCicdZaqqEubVj/4+QnFGWpITcYkgptyU5uiEBa+Ki4VSD7b5bHKNP542uSorInfEjxb8fhISFKqJLpoB6iMSjzCXBHLuWRRVkHF9y4aMHB36mtnhK3MBzMYHbg66qo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hi0eq/zL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hi0eq/zL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F32A1C32786; Thu, 13 Jun 2024 12:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718281027; bh=QyusormFuD5vpeTs5+qpetVJ5BCmydERi0ZW+G1N1qY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hi0eq/zLpHjjaorTkCTXtiY8WGv4WLOWTy2sR2a0/0ZzJ2gZ2MZc4TaKEYBcM5otP DUuchcI4pSPvVj2dVyKW+XQbgWCYwT6SnkayTZNL9emg7AbcPLu/5b1yC81eWjymnE wSb9zDJuOqINhrtPhDOZlzV+67BuGnAKpRV+hmmM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Chengchang Tang , Junxian Huang , Leon Romanovsky , Sasha Levin Subject: [PATCH 5.10 116/317] RDMA/hns: Modify the print level of CQE error Date: Thu, 13 Jun 2024 13:32:14 +0200 Message-ID: <20240613113252.038425196@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113247.525431100@linuxfoundation.org> References: <20240613113247.525431100@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chengchang Tang [ Upstream commit 349e859952285ab9689779fb46de163f13f18f43 ] 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 Link: https://lore.kernel.org/r/20240412091616.370789-11-huangjunxian6@hisilicon.com Signed-off-by: Leon Romanovsky Signed-off-by: Sasha Levin --- 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 10ffad061f94a..13aa8dd42f7d6 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -3278,8 +3278,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); /* -- 2.43.0