From patchwork Wed Jul 31 06:35:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 2836096 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1DF849F7D6 for ; Wed, 31 Jul 2013 06:36:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 308E5201EB for ; Wed, 31 Jul 2013 06:36:26 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 227E0201E9 for ; Wed, 31 Jul 2013 06:36:25 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V4Q1E-0000EG-Qt; Wed, 31 Jul 2013 06:36:21 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V4Q1B-0004W5-Hx; Wed, 31 Jul 2013 06:36:17 +0000 Received: from mailhost.informatik.uni-hamburg.de ([134.100.9.70]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V4Q18-0004VO-P2 for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2013 06:36:15 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.informatik.uni-hamburg.de (Postfix) with ESMTP id 078CC363; Wed, 31 Jul 2013 08:35:50 +0200 (CEST) X-Virus-Scanned: amavisd-new at informatik.uni-hamburg.de Received: from mailhost.informatik.uni-hamburg.de ([127.0.0.1]) by localhost (mailhost.informatik.uni-hamburg.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Fbb40vpdKOW7; Wed, 31 Jul 2013 08:35:49 +0200 (CEST) Received: from [192.168.178.21] (ppp-188-174-128-218.dynamic.mnet-online.de [188.174.128.218]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: 7clausen) by mailhost.informatik.uni-hamburg.de (Postfix) with ESMTPSA id 5D467362; Wed, 31 Jul 2013 08:35:48 +0200 (CEST) Message-ID: <51F8B045.8030303@metafoo.de> Date: Wed, 31 Jul 2013 08:35:49 +0200 From: Lars-Peter Clausen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130704 Icedove/17.0.7 MIME-Version: 1.0 To: Olof Johansson Subject: Re: New dapm panic on beaver with next-20130730 References: <51F8A933.4080708@metafoo.de> In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130731_023615_076184_C2D44DEA X-CRM114-Status: GOOD ( 19.11 ) X-Spam-Score: -4.2 (----) Cc: "alsa-devel@alsa-project.org" , Mark Brown , "linux-arm-kernel@lists.infradead.org" , Stephen Warren X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 07/31/2013 08:13 AM, Olof Johansson wrote: > On Tue, Jul 30, 2013 at 11:05 PM, Lars-Peter Clausen wrote: >> On 07/31/2013 07:36 AM, Olof Johansson wrote: >>> >>> Hi Mark, Lars-Peter, >>> >>> I noticed the below panic on beaver (Tegra30). Seems like seaboard >>> (Tegra20) is fine. This is with next-20130730, tegra_defconfig. >> >> >> Hi, >> >> So the same machine driver with the same codec works on tegra2, but not on >> tegra3? The crash doesn't seem to be directly related to the patch, but the >> patch changed the memory layout. Is it possible that you still have a >> outdated module that's being loaded on your tegra3 board? > > Sorry, I should have been cleared on that. Not at all the same codec, > seaboard uses wm8903, beaver rt5640. > >> Can you add a few debugging printks and run the test again and paste the >> last few lines before the crash: > > [beaver 00:18] [ 4.045897] dapm_generic_check_power: IF2 ADC L > [beaver 00:18] [ 4.050417] dapm_clear_walk_output 1: ee3a7bc0 > [beaver 00:18] [ 4.054845] dapm_generic_check_power: IF2 DAC > [beaver 00:18] [ 4.059193] dapm_clear_walk_output 1: ee3a8240 > [beaver 00:18] [ 4.063621] dapm_clear_walk_output 1: ee3a8280 > [beaver 00:18] [ 4.068048] dapm_generic_check_power: IF1 ADC R > [beaver 00:18] [ 4.072661] dapm_clear_walk_output 1: ee3a7c40 > [beaver 00:18] [ 4.077091] dapm_generic_check_power: IF1 ADC L > [beaver 00:18] [ 4.081616] dapm_clear_walk_output 1: ee3a7c80 > [beaver 00:18] [ 4.086045] dapm_generic_check_power: IF1 DAC > [beaver 00:18] [ 4.090394] dapm_clear_walk_output 1: ee3a82c0 > [beaver 00:18] [ 4.094821] dapm_clear_walk_output 1: ee3a8300 > [beaver 00:18] [ 4.099256] dapm_generic_check_power: INR Mux > [beaver 00:18] [ 4.103599] dapm_clear_walk_output 1: ee3af670 > [beaver 00:18] [ 4.108026] dapm_generic_check_power: INL Mux > [beaver 00:18] [ 4.112375] dapm_clear_walk_output 1: ee3af5f0 > [beaver 00:18] [ 4.116802] dapm_clear_walk_output 2: 6b6b6b6b 0x6b6b6b6b is poisoned freed memory. According to the source neither the INR Mux nor the INL Mux widget should have any sinks. Can you add a couple more printks: diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index b779d36..1a82e75 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -774,8 +774,13 @@ struct snd_soc_dapm_path *p; list_for_each_entry(p, sink, list_source) { + printk("dapm_clear_walk_output 1: %p\n", p); if (p->walked) { p->walked = 0; + printk("dapm_clear_walk_output 1: %p\n", p->source); + printk("dapm_clear_walk_output 2: %p\n", p->sink); + printk("dapm_clear_walk_output 3: %s\n", + p->sink->name); dapm_clear_walk_output(dapm, &p->sink->sinks); } } @@ -1189,6 +1194,8 @@ DAPM_UPDATE_STAT(w, power_checks); + printk("dapm_generic_check_power: %p %s\n", w, w->name); + in = is_connected_input_ep(w, NULL); dapm_clear_walk_input(w->dapm, &w->sources); out = is_connected_output_ep(w, NULL);