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: 3761531 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 3A8689F376 for ; Tue, 4 Mar 2014 12:02:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 42BF1203DA for ; Tue, 4 Mar 2014 12:02:00 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 36FBD201D5 for ; Tue, 4 Mar 2014 12:01:59 +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 1WKo2k-0005F1-4T; Tue, 04 Mar 2014 12:01:54 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WKo2h-0001Wm-Mj; Tue, 04 Mar 2014 12:01:51 +0000 Received: from mail-oa0-f44.google.com ([209.85.219.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WKo2f-0001WA-HL for linux-arm-kernel@lists.infradead.org; Tue, 04 Mar 2014 12:01:50 +0000 Received: by mail-oa0-f44.google.com with SMTP id n16so8343424oag.3 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=aETDWKYhQSG9wPbsq9l12ZHwV6JKvoIUn5lGLvhzpkpoZnDB044H8WFq1v9X/7D3on YaOHeYikQYmcPHGX9CmswvSHp2LwgIvUJRNYmTmuvr8IzHSJlwAYkwl0TUkPPEcfi8mj xvlM8qVXRTHUhVYkZ99M4xFWoNqPDlOqzwUDK4dx5qeEExHghOTDmlmY+lryEkx3gues hBtH5yIsNhvxLgIAoNwWxqCr7pgYoxXpVm2ImnPcy6VdTO+2okEVclf9qQ0Lho7Tp/0k hEqZPfbMku9uwdRRha/1Om3hzi6KlXR322Cj6+NjL23dChUI+ygtrZmbaTbiczsSw88A aHMQ== X-Gm-Message-State: ALoCoQk2AlXsfwBMondIrrcdLlSUWIhet078QcBcKWR8LLx1VIBsSCn5Up439mUGYZeWUd5YnyCW 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140304_070149_614001_C14F5B29 X-CRM114-Status: GOOD ( 21.61 ) X-Spam-Score: -2.6 (--) Cc: "linux-samsung-soc@vger.kernel.org" , Mike Turquette , Sachin Kamat , Tomasz Figa , Chander Kashyap , Kyungmin Park , Sylwester Nawrocki , "linux-arm-kernel@lists.infradead.org" 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=-4.2 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 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"; + }; + };