From patchwork Mon Aug 27 21:03:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaro Koskinen X-Patchwork-Id: 1378421 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id EF182DF280 for ; Mon, 27 Aug 2012 21:08:15 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T66Tf-0001KY-NR; Mon, 27 Aug 2012 21:04:07 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T66Tc-0001KT-Ec for linux-arm-kernel@merlin.infradead.org; Mon, 27 Aug 2012 21:04:04 +0000 Received: from filtteri2.pp.htv.fi ([213.243.153.185]) by casper.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T66TX-0007Kf-Qe for linux-arm-kernel@lists.infradead.org; Mon, 27 Aug 2012 21:04:03 +0000 Received: from localhost (localhost [127.0.0.1]) by filtteri2.pp.htv.fi (Postfix) with ESMTP id CF9BB19B62E; Tue, 28 Aug 2012 00:03:43 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp4.welho.com ([213.243.153.38]) by localhost (filtteri2.pp.htv.fi [213.243.153.185]) (amavisd-new, port 10024) with ESMTP id rdcCJMqZe0Si; Tue, 28 Aug 2012 00:03:43 +0300 (EEST) Received: from blackmetal.bb.dnainternet.fi (212-149-209-232.bb.dnainternet.fi [212.149.209.232]) by smtp4.welho.com (Postfix) with ESMTP id 6BA225BC011; Tue, 28 Aug 2012 00:03:38 +0300 (EEST) From: Aaro Koskinen To: tony@atomide.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm: omap: ratelimit omap_l3_smx error log spam Date: Tue, 28 Aug 2012 00:03:23 +0300 Message-Id: <1346101403-5882-1-git-send-email-aaro.koskinen@iki.fi> X-Mailer: git-send-email 1.7.2.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20120827_220400_082925_50A020A4 X-CRM114-Status: GOOD ( 11.82 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on casper.infradead.org summary: Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org When booting kernel on RM-680/N950, the console is flooded with: [ 6.894348] In-band Error seen by MPU at address 0 [ 6.894348] ------------[ cut here ]------------ [ 6.894378] WARNING: at arch/arm/mach-omap2/omap_l3_smx.c:162 omap3_l3_app_irq+0xd4/0x12c() [ 6.894378] Modules linked in: [ 6.894409] Backtrace: [ 6.894409] [] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c) [ 6.894439] r6:c002de58 r5:00000009 r4:00000000 r3:c0880180 [ 6.894470] [] (dump_stack+0x0/0x1c) from [] (warn_slowpath_common+0x54/0x6c) [ 6.894500] [] (warn_slowpath_common+0x0/0x6c) from [] (warn_slowpath_null+0x24/0x2c) [ 6.894500] r8:0000000a r7:00000000 r6:f8001400 r5:00000000 r4:84001b00 [ 6.894500] r3:00000009 [ 6.894561] [] (warn_slowpath_null+0x0/0x2c) from [] (omap3_l3_app_irq+0xd4/0x12c) [ 6.894561] [] (omap3_l3_app_irq+0x0/0x12c) from [] (handle_irq_event_percpu+0x54/0x19c) [ 6.894592] r7:00000000 r6:00000000 r5:c082c710 r4:ef072340 [ 6.894622] [] (handle_irq_event_percpu+0x0/0x19c) from [] (handle_irq_event+0x60/0x80) [ 6.894653] [] (handle_irq_event+0x0/0x80) from [] (handle_level_irq+0xb4/0x134) [ 6.894653] r5:c082c710 r4:c082c6c0 [ 6.894683] [] (handle_level_irq+0x0/0x134) from [] (generic_handle_irq+0x2c/0x44) [ 6.894683] r6:ef02c000 r5:c0829014 r4:c0841e18 r3:c008824c [ 6.894744] [] (generic_handle_irq+0x0/0x44) from [] (handle_IRQ+0x54/0xb8) [ 6.894744] [] (handle_IRQ+0x0/0xb8) from [] (omap3_intc_handle_irq+0x68/0x7c) [ 6.894775] r8:c08415cc r7:0000000a r6:c0898c38 r5:ef02de88 r4:fa200000 [ 6.894775] r3:00000000 [ 6.894805] [] (omap3_intc_handle_irq+0x0/0x7c) from [] (__irq_svc+0x40/0x54) [ 6.894836] Exception stack(0xef02de88 to 0xef02ded0) [ 6.894836] de80: f0048000 00000000 00007000 00000000 0000 3035 f004bfca [ 6.894866] dea0: 00000000 00000000 c08415cc c0898140 ef02c000 ef02def4 ef02 def8 ef02ded0 [ 6.894866] dec0: c042b1dc c0016efc 20000013 ffffffff [ 6.894897] r7:ef02debc r6:ffffffff r5:20000013 r4:c0016efc [ 6.894927] [] (_memset_io+0x0/0x50) from [] (omap_sram_init+0x228/0x56c) [ 6.894927] r8:c0445cf4 r7:c0417208 r6:c0898140 r5:c0899840 r4:c0899a3c [ 6.894927] r3:f004f000 [ 6.894989] [] (omap_sram_init+0x0/0x56c) from [] (omap_sdrc_init+0x18/0xb8) [ 6.894989] r6:c0898140 r5:c0899840 r4:c0899840 r3:0005e601 [ 6.895019] [] (omap_sdrc_init+0x0/0xb8) from [] (rm680_init+0x34/0xc0) [ 6.895050] r5:c04518e0 r4:c0875da0 [ 6.895080] [] (rm680_init+0x0/0xc0) from [] (customize_machine+0x24/0x30) [ 6.895080] r5:00000003 r4:00000000 [ 6.895111] [] (customize_machine+0x0/0x30) from [] (do_one_initcall+0x11c/0x184) [ 6.895141] [] (do_one_initcall+0x0/0x184) from [] (kernel_init+0x100/0x1c4) [ 6.895141] [] (kernel_init+0x0/0x1c4) from [] (do_exit+0x0/0x794) [ 6.895172] ---[ end trace 1b75b31a271a0d00 ]--- This is repeated maybe a thousand times. While the root cause remains unknown (they seem to occur during SDRC and DMA init), the errors should be at least ratelimited so that user will also have chance to see other boot messages. Signed-off-by: Aaro Koskinen --- arch/arm/mach-omap2/omap_l3_smx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/omap_l3_smx.c b/arch/arm/mach-omap2/omap_l3_smx.c index acc2164..e3b4948 100644 --- a/arch/arm/mach-omap2/omap_l3_smx.c +++ b/arch/arm/mach-omap2/omap_l3_smx.c @@ -155,11 +155,11 @@ static irqreturn_t omap3_l3_block_irq(struct omap3_l3 *l3, u8 multi = error & L3_ERROR_LOG_MULTI; u32 address = omap3_l3_decode_addr(error_addr); - pr_err("%s seen by %s %s at address %x\n", + pr_err_ratelimited("%s seen by %s %s at address %x\n", omap3_l3_code_string(code), omap3_l3_initiator_string(initid), multi ? "Multiple Errors" : "", address); - WARN_ON(1); + WARN_ON_ONCE(1); return IRQ_HANDLED; }