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: 25678 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BC3852066C for ; Tue, 4 Mar 2014 12:01:30 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id p10sf13080335pdj.11 for ; Tue, 04 Mar 2014 04:01:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:in-reply-to:references :date:message-id:subject:from:to:cc:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=k18bi74YlhP0k6ltxfympaBz1eERBVhcqIFB3hqHR58=; b=hz3F1ItCKONOWuzII9mppuu+T0Ak9KWngyQJsFbLtF+NG56MkJwB4FRbo9OgMnxTKM 4+aqaM/nBUZT2wLJkHBd43K3Z4FISgktUTD5JShPh/y5hnVZipVZbVtQ3DAltKvz6KQl 0F5/UWNe3yJXasKtAZC6aRAYAJgLqbPRRB3lLx5g0AMJjZqG/Prhlf/QQvlGg7qv9RD1 fBDfx7haTr8EjFy/gtzo2HjpUJTlAioSX7lQTu+bHwxUTHDV4s9E4LKGmlfitNyziUqg AG3XkGUsjssN0EkD9rlBXNLqCSm+AlDvFU06RezmLGhAKHKzKguYlEPOLBptbB4RRIi+ 8G2w== X-Gm-Message-State: ALoCoQn+mBM8NmTiHpxL5gc4KI6Jr9m2Od/B0Z86iBKasZNf58fZWN9kye6DbloJfFpPZmq2HDJO X-Received: by 10.66.65.202 with SMTP id z10mr2446589pas.45.1393934489905; Tue, 04 Mar 2014 04:01:29 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.106.71 with SMTP id d65ls2740015qgf.60.gmail; Tue, 04 Mar 2014 04:01:29 -0800 (PST) X-Received: by 10.58.204.4 with SMTP id ku4mr2112218vec.34.1393934489795; Tue, 04 Mar 2014 04:01:29 -0800 (PST) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id sm10si4173027vec.119.2014.03.04.04.01.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Mar 2014 04:01:29 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so5757983veb.0 for ; Tue, 04 Mar 2014 04:01:29 -0800 (PST) X-Received: by 10.52.15.132 with SMTP id x4mr2155472vdc.31.1393934489698; Tue, 04 Mar 2014 04:01:29 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.130.193 with SMTP id u1csp121542vcs; Tue, 4 Mar 2014 04:01:29 -0800 (PST) X-Received: by 10.66.156.4 with SMTP id wa4mr5522275pab.49.1393934488585; Tue, 04 Mar 2014 04:01:28 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wl10si13965846pab.346.2014.03.04.04.01.28; Tue, 04 Mar 2014 04:01:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757027AbaCDMB1 (ORCPT + 8 others); 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) 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: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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"; + }; + };