Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp170426ybn; Thu, 3 Oct 2019 03:22:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaR+fgrwokPSmdUFo+mbvQd7+Jbrx/CEKNv+Rz9VM8VKKWQT0cU5G+rIMfpjEmFZR3rk0K X-Received: by 2002:a17:906:6d4:: with SMTP id v20mr6908446ejb.223.1570098170481; Thu, 03 Oct 2019 03:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570098170; cv=none; d=google.com; s=arc-20160816; b=mBdfHmttEYYXi5Zk1k3kDFZdcYVYKTO51/0ym32dGSps0LstJXoXpiYrsTIWQApaFv 5Vof9mcXZdcmBgKzwiThAcG7k5ONXDss4/dGEJ6rg4cDFsI8OJSydcsXpdJ+ZWjJejAI Idp5uxiXVEgADSjsJ7AnwmyQTFOTAloSinXzsvG1n5bDB+ZTM/mKdQhTJSd1WjQwHuAf PWFiXhYO17dWPdpTzpEnxRmYNA95cfFAhuZVpdYoXQBUbBNjAFfHfY41VdS/4ndTDlzT rOZ4KXldAD491CKPiN3BcMmTsWd58wuEQ/vb56Dkap4QebTaLeSkTgUYaIjW0cF52kLC Ramw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RgYfjLnuHCVaLlaLQE6xBvCVpBRhiKlsW8AM1IaRwoc=; b=vT4EgHoBRkj+mvT8UlFsHBq6KUocrVa0c68HJ66U3PeIqgfJGNS8rAjPqn7A5/csVN lEK6TwO1v0u/0p+kXSWHR3TOb9cyyh2uAG1uPUpcz1i4B8cNa+aPVnhjrN8WrEQyJDRd v5sYXKZkLENZ/6BEw3D4EV7L94ut0tHllLVYK+kzpd2fGXjEPDf8Wf9SPtkAWplrKQsh 3hjyTNgfjp2KFJ+oDnqi0y50KNsZ0tYVmQj0kNX+ngFIkKKlUOXBTsRAx6nVPvijrISl C3zp0PqExErri2mvfwHATOuqbuM5rL4Wtlhw5wIiZC5rjaP06uz7q/x3Nz5gZs+l1c0/ Ycig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=liP+tQrb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si1111509edq.195.2019.10.03.03.22.25; Thu, 03 Oct 2019 03:22:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=liP+tQrb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728942AbfJCKU3 (ORCPT + 99 others); Thu, 3 Oct 2019 06:20:29 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:39666 "EHLO mail-wm1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726978AbfJCKU2 (ORCPT ); Thu, 3 Oct 2019 06:20:28 -0400 Received: by mail-wm1-f49.google.com with SMTP id v17so1838232wml.4 for ; Thu, 03 Oct 2019 03:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RgYfjLnuHCVaLlaLQE6xBvCVpBRhiKlsW8AM1IaRwoc=; b=liP+tQrbcQ/PhyPV3IF4Q4ag8vLwWVnhHzZ1wWzHuXbSQMFyZgGMd44HgAxDKUVy/N imtKR55T4uy0tMLy4sN8UDHsfIWZ9/hQEBG+0UEUsK+Kehwjk0R5d3JP5sALQDr3YEuG QMZQfTH2SRzyU+YmN3kCaoe9wwBqRsQv6suN8EZWUrwSyoWOWnp8c0WuswIGQvtzyg7/ 0980nAGHmjcNBOj7kWVo/ASWlTP5ejFboQ6W6HAfMvTtp2ZX1+Y8eEhWubQij3R0zeeS y9zAm3OZu3kqMPWwOrpxMb1wXPWn+VdiiDt/FgOVGnTW1+yBYyxPDD66tvTnHJLDIHki bZjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RgYfjLnuHCVaLlaLQE6xBvCVpBRhiKlsW8AM1IaRwoc=; b=MJtiTs2iv9vhjwkBQJMbS+mHpwUsR50JlptH91s8o3GK1700b+v4CYBrF7IKOlSVw9 79/cs3jPjmQrTqQD9RZvUPRlMuV5MwUnv6OM7N/isrFSLRbwt4EMXelh7ghHrdzGBI8P q/4vT+OKi7sPdvNRReVNURqahrBt8af5UHMfHuYCDXuyfl1mD29bZ7yv0/SzdkKQ6Ebs lvX5p9SeaD6qvP6xwDnhbj57/XNI2rZm6RyYlqGEGnAdy/D3kYKhDdxOx71Uvmu8hsWi QUSCZk8bIG21pswp9aJiJzzlxikQe7gHcxgQhnx3O4OcUyCCvNPmhXFVhTp/rLoSiSUX ddtA== X-Gm-Message-State: APjAAAXvkJC604HS0NK3j7vrnABvrLkxR+5yaZBfLurSxd1OpaVVFmPL Zsx029QEJsGOD3KGu+sqhKnAIw== X-Received: by 2002:a1c:80ca:: with SMTP id b193mr5852137wmd.171.1570098026639; Thu, 03 Oct 2019 03:20:26 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id n17sm2102552wrp.37.2019.10.03.03.20.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2019 03:20:25 -0700 (PDT) Date: Thu, 3 Oct 2019 11:20:23 +0100 From: Daniel Thompson To: Mathieu Poirier Cc: Sai Prakash Ranjan , Jeffrey Hugo , Mark Rutland , Rajendra Nayak , Suzuki K Poulose , Alexander Shishkin , MSM , Marc Gonzalez , lkml , Bjorn Andersson , David Brown , Andy Gross , Sibi Sankar , Leo Yan , linux-arm-kernel , linux-arm-msm-owner@vger.kernel.org Subject: Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support Message-ID: <20191003102023.qk6ik5vmatheaofs@holly.lan> References: <90114e06825e537c3aafd3de5c78743a9de6fadc.1564550873.git.saiprakash.ranjan@codeaurora.org> <16212a577339204e901cf4eefa5e82f1@codeaurora.org> <5b8835905a704fb813714694a792df54@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 02, 2019 at 09:03:59AM -0600, Mathieu Poirier wrote: > On Tue, 1 Oct 2019 at 12:05, Sai Prakash Ranjan > wrote: > > > > On 2019-10-01 11:01, Jeffrey Hugo wrote: > > > On Tue, Oct 1, 2019 at 11:52 AM Sai Prakash Ranjan > > > wrote: > > >> > > >> > > >> Haan then likely it's the firmware issue. > > >> We should probably disable coresight in soc dtsi and enable only for > > >> MTP. For now you can add a status=disabled for all coresight nodes in > > >> msm8998.dtsi and I will send the patch doing the same in a day or > > >> two(sorry I am travelling currently). > > > > > > This sounds sane to me (and is what I did while bisecting the issue). > > > When you do create the patch, feel free to add the following tags as > > > you see fit. > > > > > > Reported-by: Jeffrey Hugo > > > Tested-by: Jeffrey Hugo > > > > Thanks Jeffrey, I will add them. > > Hope Mathieu and Suzuki are OK with this. > > The problem here is that a debug and production device are using the > same device tree, i.e msm8998.dtsi. Disabling coresight devices in > the DTS file will allow the laptop to boot but completely disabled > coresight blocks on the MTP board. Leaving things as is breaks the > laptop but allows coresight to be used on the MTP board. One of three > things can happen: > > 1) Nothing gets done and production board can't boot without DTS modifications. > 2) Disable tags are added to the DTS file and the debug board can't > use coresight without modifications. > 2) The handling of the debug power domain is done properly on the > MSM8998 rather than relying on the bootloader to enable it. > 3) The DTS file is split or reorganised to account for debug/production devices. msm8998.dtsi is a SoC include file. Can't whatever default it adopts be reversed in the board include files such as msm8998-mtp.dtsi or msm8998-clamshell.dtsi ? Daniel.