From patchwork Tue Mar 4 12:01:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 3761521 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 0BFE09F376 for ; Tue, 4 Mar 2014 12:01:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 00F88203DA for ; Tue, 4 Mar 2014 12:01:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0B423201D5 for ; Tue, 4 Mar 2014 12:01:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757027AbaCDMB1 (ORCPT ); Tue, 4 Mar 2014 07:01:27 -0500 Received: from mail-oa0-f42.google.com ([209.85.219.42]:49750 "EHLO mail-oa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756661AbaCDMB1 (ORCPT ); Tue, 4 Mar 2014 07:01:27 -0500 Received: by mail-oa0-f42.google.com with SMTP id i4so4641675oah.1 for ; Tue, 04 Mar 2014 04:01:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=dFMjxD5KZbag1msrYD3qnq8uR801BoDKbBASTppSnRg=; b=fphbuutiPqugWoxWE2ERZUnQX36jDS1t+THe0YTwCQtA2m6W3l0kOn9c2aQ+SuBiP9 GOdGXgbsDY6phf4LA1kdiFjQyohNFLXRVJSbl5+x0x/mttGBExBS7jGvN51wLuFOYO31 DgPKyW+5SggxQjJCTci/HY58Tn3QM+6KKVmHj9/i8D5kWTa7lMtUVmY3UgiZYWwjsO99 Z6e2AWhgL09s6UEaOhMtLRt//HHFuKFxi04t+7wF52EZVr1kpMX7DkxS8WdoghW0xcjy AfXqBTXJOSEnub/iHljFJvsVZm48kRdSWr1iJ2rK5Uic8zGg6oVoRfXcLRl/FRGh6Cvu egmg== X-Gm-Message-State: ALoCoQlXS/Ff1icI1HuIvcHDLvvPqZtdyC+iBzr7ZXkdRk7PTzTYQ4UVBnYbMO38pPVFZzoRf03r MIME-Version: 1.0 X-Received: by 10.182.120.40 with SMTP id kz8mr9252807obb.6.1393934486369; Tue, 04 Mar 2014 04:01:26 -0800 (PST) Received: by 10.60.70.38 with HTTP; Tue, 4 Mar 2014 04:01:26 -0800 (PST) In-Reply-To: <20140304103936.GA10559@e102654-lin.cambridge.arm.com> References: <20140303185755.GA11460@e102654-lin.cambridge.arm.com> <5314D239.7090001@gmail.com> <5314EBCB.3060400@gmail.com> <20140304101608.GA3852@e102654-lin.cambridge.arm.com> <5315AB3B.5080207@samsung.com> <20140304103936.GA10559@e102654-lin.cambridge.arm.com> Date: Tue, 4 Mar 2014 17:31:26 +0530 Message-ID: Subject: Re: [REGRESSION] Arndale Octa panics when booting 3.14-rc1 From: Tushar Behera To: Javi Merino Cc: Sylwester Nawrocki , Tomasz Figa , "linux-arm-kernel@lists.infradead.org" , Mike Turquette , Kyungmin Park , "linux-samsung-soc@vger.kernel.org" , Sachin Kamat , Chander Kashyap Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 4 March 2014 16:09, Javi Merino wrote: > On Tue, Mar 04, 2014 at 10:30:19AM +0000, Sylwester Nawrocki wrote: >> On 04/03/14 11:16, Javi Merino wrote: >> > Yes, with [1] applied I don't get a kernel panic but the kernel fails >> > to boot later on with an Imprecise external abort. Removing the mdma >> > nodes from the dts gets rid of that. I guess what's missing is what >> > you said: clocks for the mdma devices. >> >> Is removing mdm0 node enough to fix the boot failure, or both have to be >> removed ? > > Actually, you it's only mdma1. Just removing the mdma1 node from the > dt fixes the imprecise external abort. > MDMA1 can support both secure and non-secure AXI transactions, the actual behaviour is controlled by trustzone software. It may be the case that MDMA1 is configured to be used in secure mode only, hence accessing it in non-secure mode is causing the oops. Right now, the only solution looks like disabling this node in Arndale-Octa dts file. If it works, I will submit this patch. >> Unfortunately I don't access to exynos5420 datasheet at the moment, I've >> added guys from Samsung Linaro Landing Team at cc, hopefully they can >> provide a patch for the clocks driver to fix this. > > Thanks, > Javi > >> > 8<--- >> > [ 8.060000] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ d) >> > [ 8.070000] Registering SWP/SWPB emulation handler >> > [ 8.075000] s3c-rtc 101e0000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800) >> > [ 8.080000] mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 52000000Hz, actual 50000000HZ ) >> > [ 8.090000] Freeing unused kernel memory: 220K (c04c1000 - c04f8000) >> > [ 8.100000] Unhandled fault: imprecise external abort (0x1406) at 0x00000000 >> > [ 8.105000] mmc0: new high speed DDR MMC card at address 0001 >> > [ 8.110000] mmcblk0: mmc0:0001 M4G1FB 3.64 GiB >> > [ 8.115000] mmcblk0boot0: mmc0:0001 M4G1FB partition 1 1.00 MiB >> > [ 8.120000] mmcblk0boot1: mmc0:0001 M4G1FB partition 2 1.00 MiB >> > [ 8.125000] mmcblk0rpmb: mmc0:0001 M4G1FB partition 3 128 KiB >> > [ 8.135000] mmcblk0: p1 p2 p3 p4 >> > [ 8.140000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007 >> > [ 8.140000] >> > [ 8.140000] CPU: 0 PID: 1 Comm: init Not tainted 3.14.0-rc5-00002-g691b10f #189 >> > [ 8.140000] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) >> > [ 8.140000] [] (show_stack) from [] (dump_stack+0x64/0xb4) >> > [ 8.140000] [] (dump_stack) from [] (panic+0x8c/0x1dc) >> > [ 8.140000] [] (panic) from [] (do_exit+0x80c/0x8b8) >> > [ 8.140000] [] (do_exit) from [] (do_group_exit+0x3c/0xb0) >> > [ 8.140000] [] (do_group_exit) from [] (get_signal_to_deliver+0x278/0x500) >> > [ 8.140000] [] (get_signal_to_deliver) from [] (do_signal+0x78/0x398) >> > [ 8.140000] [] (do_signal) from [] (do_work_pending+0x64/0xac) >> > [ 8.140000] [] (do_work_pending) from [] (work_pending+0xc/0x20) >> > 8<--- > > -- > To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/arch/arm/boot/dts/exynos5420-arndale-octa.dts +++ b/arch/arm/boot/dts/exynos5420-arndale-octa.dts @@ -354,4 +354,16 @@ samsung,i2s-controller = <&i2s0>; samsung,audio-codec = <&i2s_stub>; }; + + amba { + mdma1: mdma@11C10000 { + /* + * MDMA1 can support both secure and non-secure + * AXI transactions. When this is enabled in the kernel + * for boards that run in secure mode, we are getting + * imprecise external aborts causing the kernel to oops. + */ + status = "disabled"; + }; + };