From patchwork Thu Feb 28 11:34:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heikki Krogerus X-Patchwork-Id: 2197141 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 6B84E3FCF6 for ; Thu, 28 Feb 2013 11:37:31 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UB1kq-0000AO-LJ; Thu, 28 Feb 2013 11:34:28 +0000 Received: from mga02.intel.com ([134.134.136.20]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UB1ko-00009m-Gf for linux-arm-kernel@lists.infradead.org; Thu, 28 Feb 2013 11:34:26 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 28 Feb 2013 03:34:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,755,1355126400"; d="diff'?scan'208";a="269012666" Received: from kuha.fi.intel.com (HELO hk) ([10.237.72.54]) by orsmga001.jf.intel.com with SMTP; 28 Feb 2013 03:34:20 -0800 Received: by hk (sSMTP sendmail emulation); Thu, 28 Feb 2013 13:34:19 +0200 Date: Thu, 28 Feb 2013 13:34:19 +0200 From: Heikki Krogerus To: Masami Hiramatsu , Gregory CLEMENT Subject: Re: [BUG][arm-soc] kernel panic in boot on Openblocks with the latest kernel Message-ID: <20130228113419.GB5688@xps8300> References: <512F3BDA.6000208@hitachi.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <512F3BDA.6000208@hitachi.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130228_063426_616233_72C832E2 X-CRM114-Status: GOOD ( 18.50 ) X-Spam-Score: -7.6 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [134.134.136.20 listed in list.dnswl.org] -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: thomas.petazzoni@free-electrons.com, iwamatsu@nigauri.org, linux-kernel@vger.kernel.org, yrl.pp-manager.tt@hitachi.com, linux-arm-kernel@lists.infradead.org, alan@linux.intel.com 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 Hi, On Thu, Feb 28, 2013 at 08:13:30PM +0900, Masami Hiramatsu wrote: > Hi, > > I tried the latest "fixes" branch of arm-soc.git on OpenBlocks > AX3 (Marvel Armada-XP) and got below kernel panic in boot sequence. > It seems that we have an exception while cpu is in idle. > > ---- > Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200 > > Backtrace: > [] (dump_backtrace+0x0/0x110) from [] (dump_stack+0x18/0x1c) > r6:ef2bcc00 r5:c06532b0 r4:ef2bcc00 r3:00000001 > [] (dump_stack+0x0/0x1c) from [] (panic+0x90/0x1ec) > [] (panic+0x0/0x1ec) from [] (do_exit+0x500/0x960) > r3:ef2c0dc0 r2:ef2bcc00 r1:00000200 r0:c0584be1 > r7:c063e040 > [] (do_exit+0x0/0x960) from [] (do_group_exit+0xa4/0xd0) > r7:000000f8 > [] (do_group_exit+0x0/0xd0) from [] (__wake_up_parent+0x0/0x28) > r7:000000f8 r6:0000003c r5:bee6bf14 r4:000703ae > [] (sys_exit_group+0x0/0x18) from [] (ret_fast_syscall+0x0/0x30) > CPU0: stopping > Backtrace: > [] (dump_backtrace+0x0/0x110) from [] (dump_stack+0x18/0x1c) > r6:c063df48 r5:00000000 r4:c0688e98 r3:c064def4 > [] (dump_stack+0x0/0x1c) from [] (handle_IPI+0xc8/0x12c) > [] (handle_IPI+0x0/0x12c) from [] > (armada_370_xp_handle_irq+0x98/0xb0) > r5:c0689070 r4:00000005 > [] (armada_370_xp_handle_irq+0x0/0xb0) from [] > (__irq_svc+0x40/0x50) > Exception stack(0xc063df48 to 0xc063df90) > df40: ffffffed 00000000 027ac000 60000013 c063c000 c0688c88 > df60: c04b5518 c2ddffc0 0000406a 562f5842 00000000 c063dfac c063df90 c063df90 > df80: c000e588 c000e590 60000013 ffffffff > [] (cpu_idle+0x0/0x104) from [] (rest_init+0x64/0x7c) > r6:c0625a50 r5:00000000 r4:c06450e0 r3:00000000 > [] (rest_init+0x0/0x7c) from [] (start_kernel+0x2d4/0x32c) > [] (start_kernel+0x0/0x32c) from [<00008074>] (0x8074) > ---- > > And I found that this panic also happened on the latest linus tree. > Git-bisect told me that the 8250 serial driver patch is the first bad > commit. > > serial: 8250_dw: Don't use UPF_FIXED_TYPE > > 966c4e39b5f7f249d7bb4c409176c9e6c5d48025 I'm assuming this is the same issue Gregory already reported. Can you try the attached diff, and tell if it fixes the issue? Thanks, diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi index 4e3e4a3..dcbbc1d 100644 --- a/arch/arm/boot/dts/armada-370-xp.dtsi +++ b/arch/arm/boot/dts/armada-370-xp.dtsi @@ -54,7 +54,7 @@ reg = <0xd0012000 0x100>; reg-shift = <2>; interrupts = <41>; - reg-io-width = <4>; + reg-io-width = <1>; status = "disabled"; }; serial@d0012100 { @@ -62,7 +62,7 @@ reg = <0xd0012100 0x100>; reg-shift = <2>; interrupts = <42>; - reg-io-width = <4>; + reg-io-width = <1>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi index 1443949..ca00d83 100644 --- a/arch/arm/boot/dts/armada-xp.dtsi +++ b/arch/arm/boot/dts/armada-xp.dtsi @@ -46,7 +46,7 @@ reg = <0xd0012200 0x100>; reg-shift = <2>; interrupts = <43>; - reg-io-width = <4>; + reg-io-width = <1>; status = "disabled"; }; serial@d0012300 { @@ -54,7 +54,7 @@ reg = <0xd0012300 0x100>; reg-shift = <2>; interrupts = <44>; - reg-io-width = <4>; + reg-io-width = <1>; status = "disabled"; };