From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35840C7EE29 for ; Thu, 25 May 2023 18:42:08 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 4967A850; Thu, 25 May 2023 20:41:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4967A850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1685040126; bh=RJQ0IbZ0oPaulOxZ9aeqSeG2KcvtBy2zygzzhIewGf4=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=itT3Db4waVRcZvsg1z6ai1LjRyZL4Agu7vnjxEP35KJXU+RjpDLA1kF+Gj5te/NTl +JpHRkyL9B7xjrPo7hHTmRM+Zjhau3cnmCdVJo1/3mjtE+W6AQoU9S+hPeXk5oP+pU bhmLnb4jHCB/lGaDQQvm5GftU41fyXdw3NxqT2ac= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 067E2F8053D; Thu, 25 May 2023 20:41:15 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id C3549F8053D; Thu, 25 May 2023 20:41:15 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 05FF4F8053D; Thu, 25 May 2023 20:41:11 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 652B5F8001F for ; Thu, 25 May 2023 20:41:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 652B5F8001F Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=KZzGsY3P Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DCE0B64949; Thu, 25 May 2023 18:41:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FC6AC4339B; Thu, 25 May 2023 18:41:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685040068; bh=RJQ0IbZ0oPaulOxZ9aeqSeG2KcvtBy2zygzzhIewGf4=; h=From:To:Cc:Subject:Date:From; b=KZzGsY3Pna7UlyMLR5p/lLGjghyZcp4dw2gHxpEenhNPExfWv3KGo0LBTkbImQTGI hREsOE8vMh20j0XV9+Qmt4cHkvmrzD4MA3tG1ZhzkMCCsgJS6Q4o1WVXDV/9CmklGf 9rYM/nNnRsIyQopTRO6j/hXe8T+oNFo6wzhLy7u5f6kx/cIF5RXNVA5LjvvnmgxCXl xgd4MCKCc6SSiFaAOcQ6yrCtvkTl9UnwtV1EZIfAAy2irxCtm4swhEnUaiEsizI7zE Qe9STjwpFbLqfIwW6GCAy4UfSBz0ke7JoeiOG78AfduOZoBce2UMKOTYv7fue+jZEs WzqYQPqFTsrQw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Maxim Kochetkov , Sasha Levin , lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, ckeepax@opensource.cirrus.com, nicolas.ferre@microchip.com, u.kleine-koenig@pengutronix.de, alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.10 01/31] ASoC: dwc: limit the number of overrun messages Date: Thu, 25 May 2023 14:40:32 -0400 Message-Id: <20230525184105.1909399-1-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Message-ID-Hash: NZ3HVJT45KWXPDCQKOQ2W7S5CXW774AG X-Message-ID-Hash: NZ3HVJT45KWXPDCQKOQ2W7S5CXW774AG X-MailFrom: sashal@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Maxim Kochetkov [ Upstream commit ab6ecfbf40fccf74b6ec2ba7ed6dd2fc024c3af2 ] On slow CPU (FPGA/QEMU emulated) printing overrun messages from interrupt handler to uart console may leads to more overrun errors. So use dev_err_ratelimited to limit the number of error messages. Signed-off-by: Maxim Kochetkov --- sound/soc/dwc/dwc-i2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c index 36da0f01571a1..5469399abcb44 100644 --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c @@ -132,13 +132,13 @@ static irqreturn_t i2s_irq_handler(int irq, void *dev_id) /* Error Handling: TX */ if (isr[i] & ISR_TXFO) { - dev_err(dev->dev, "TX overrun (ch_id=%d)\n", i); + dev_err_ratelimited(dev->dev, "TX overrun (ch_id=%d)\n", i); irq_valid = true; } /* Error Handling: TX */ if (isr[i] & ISR_RXFO) { - dev_err(dev->dev, "RX overrun (ch_id=%d)\n", i); + dev_err_ratelimited(dev->dev, "RX overrun (ch_id=%d)\n", i); irq_valid = true; } } -- 2.39.2