From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5261C48BE0 for ; Fri, 21 Jun 2019 16:11:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 98DA8206B7 for ; Fri, 21 Jun 2019 16:11:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N7YNmSRz"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gerhold.net header.i=@gerhold.net header.b="E6e+SLtJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 98DA8206B7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=h+4BHxEQJ7BQOb8BRzLNY3krqc//mprXcrdMYsMVU8Q=; b=N7YNmSRze0qY+e t6sC6VmcwSCigJ1Dpp2MDl+FFWVaqlp84fozxO8/izq4t58KaojHps4TI8ntdZVutix1lyV2lmc87 SN7AU7f8LW/r8ly8Al8F6aDSvzmiabNCx8voJ1z0x79zQLvk7J8AxYwpznbPNVv2A03qf1UafwCLc XzsuQE4qp3nMxgmy4aALTYG9d6+OmrHQhcjhqfTIIZk8sUwOynBSPebcQzkQ8PNKBMvK9kmXlazX+ VTkYRvwOIS/4JOH1uGt3hwVCKqXgRrr1GyBcTKUbOhVLuzbEAtrmJbjqv/SkvCzblzmvJ62GJXQJ4 v31gaDpqmsIqdDkd5eew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1heM7v-0003Ye-Bw; Fri, 21 Jun 2019 16:10:59 +0000 Received: from mo6-p01-ob.smtp.rzone.de ([2a01:238:20a:202:5301::1]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1heM7s-0003Ww-Bm for linux-arm-kernel@lists.infradead.org; Fri, 21 Jun 2019 16:10:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1561133454; s=strato-dkim-0002; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=KYSyIaHOav3ZO2XBQ/Ogk5t2GXK9gtYCHwouuD6sHvk=; b=E6e+SLtJ4LDhHeKCH2bp/tqk8crmbECSS+e5YQNW7MRRhcoPFWpjrg5+Y88iPsFoA2 25L73kmrnfghES47L3rlG7de1xxlaA8LdGuVEeyY0VH6vTmCAuGXbx9vbd3dajRXN3Em XnKRtrJZXUn2C1EGMDHRV/iMf1S4y/jFPHTNSxb06d03S79gfggcHndzVKOW1Cd2Vh98 frrR+zbEIzA5eYsDrjYRws6qP7jEcG46qFe5HoCxRxI3oQ0+4gl/t88D2nbY4V/JImlx X6QpGkoW+auvwETAj/eHvs0kIc8YbJ0gjmCV+ZsriUpPZYFHNe4Mkp30hr3tiiR2Bvwz w2pA== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQ/OcYgojyw4j34+u26zEodhPgRDZ8b5Ic/FbYo=" X-RZG-CLASS-ID: mo00 Received: from gerhold.net by smtp.strato.de (RZmta 44.24 DYNA|AUTH) with ESMTPSA id m0a13fv5LGAqGUG (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 21 Jun 2019 18:10:52 +0200 (CEST) Date: Fri, 21 Jun 2019 18:10:51 +0200 From: Stephan Gerhold To: Sudeep Holla Subject: Re: Coresight causes synchronous external abort on msm8916 Message-ID: <20190621161051.GB34922@gerhold.net> References: <20190618202623.GA53651@gerhold.net> <20190619183904.GB937@gerhold.net> <20190620093530.GE1248@e107155-lin> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190620093530.GE1248@e107155-lin> User-Agent: Mutt/1.12.0 (2019-05-25) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190621_091056_995459_FA3A28C3 X-CRM114-Status: GOOD ( 25.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mathieu.poirier@linaro.org, Suzuki K Poulose , linux-arm-msm@vger.kernel.org, david.brown@linaro.org, agross@kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jun 20, 2019 at 10:35:30AM +0100, Sudeep Holla wrote: > On Wed, Jun 19, 2019 at 08:39:04PM +0200, Stephan Gerhold wrote: > > Hi, > > > > On Wed, Jun 19, 2019 at 09:49:03AM +0100, Suzuki K Poulose wrote: > > > Hi Stephan, > > > > > > On 18/06/2019 21:26, Stephan Gerhold wrote: > > > > Hi, > > > > > > > > I'm trying to run mainline Linux on a smartphone with MSM8916 SoC. > > > > It works surprisingly well, but the coresight devices seem to cause the > > > > following crash shortly after userspace starts: > > > > > > > > Internal error: synchronous external abort: 96000010 [#1] PREEMPT SMP > > > > > > ... > > > > > > > > > > > > > > In this case I'm using a simple device tree similar to apq8016-sbc, > > > > but it also happens using something as simple as msm8916-mtp.dts > > > > on this particular device. > > > > (Attached: dmesg log with msm8916-mtp.dts and arm64 defconfig) > > > > > > > > I can avoid the crash and boot without any further problems by disabling > > > > every coresight device defined in msm8916.dtsi, e.g.: > > > > > > > > tpiu@820000 { status = "disabled"; }; > > > > > > ... > > > > > > > > > > > I don't have any use for coresight at the moment, > > > > but it seems somewhat odd to put this in the device specific dts. > > > > > > > > Any idea what could be causing this crash? > > > > > > This is mostly due to the missing power domain support. The CoreSight > > > components are usually in a debug power domain. So unless that is turned on, > > > (either by specifying proper power domain ids for power management protocol > > > supported by the firmware OR via other hacks - e.g, connecting a DS-5 to > > > keep the debug power domain turned on , this works on Juno -). > > > > Interesting, thanks a lot! > > > > In this case I'm wondering how it works on the Dragonboard 410c. > > Does it enable these power domains in the firmware? > > (Assuming it boots without this error...) > > > > If coresight is not working properly on all/most msm8916 devices, > > shouldn't coresight be disabled by default in msm8916.dtsi? > > At least until those power domains can be set up by the kernel. > > > > Why do you want to disable in DTS if it's issue with some incomplete > kernel configuration. If power domains are disabled in the kernel, then > the pm_runtime might ignore and proceed assuming the firmware enables > all power domains ON on boot. > At the moment, disabling it in DTS is the only way I have found to make the kernel boot successfully. I have tried booting with clk_ignore_unused and pd_ignore_unused but it does not make any difference. If the debug power domain is the problem, then I suspect it is not turned on by the firmware on this production device. Also see my other reply: https://lore.kernel.org/linux-arm-msm/20190621160631.GA34922@gerhold.net/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel