Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp197271ybn; Thu, 3 Oct 2019 03:51:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqws33MccFuG6rx4rmI44FeWqfpq0VAO2RqwK8WtgHImZPmPRpcc502BS5fOaJwiVGT3cntr X-Received: by 2002:a17:906:9498:: with SMTP id t24mr6857526ejx.88.1570099863000; Thu, 03 Oct 2019 03:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570099862; cv=none; d=google.com; s=arc-20160816; b=n+b52UeQ3QN03RdAsRKZn5lmMeeGV+Cfh6XIkOGCw7Ck5i/lApM3g4oISwr5daXdkm dcYRE+TdNt8x7sFtMZGgI134bvy9HSMFN1PgsLHZUq7C9QQqRnrGx1iyec4p6wVqitTf 8C9i0gncCThrgBOlCiERFwWLrrduUbk2jk+Q2riQ6ry4CiAAYj0chc42hzMlXDvug0su AW4+F+YObY0sjeYIh+ggUtlUYMv4/SNrvcBGXBh70zI4vBARngFHg75s4rT/K0brVqEk GnyqePxk+QRtp6VfOdW2D7X5uV/OGyljl4eoS4JfqrLCtBX0rLqEM+PvaDzn6EnMuFZ3 5Bxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Jv3a/45oEJKj8tEOW7JY2HDN+SyyAcSWI83Dg8t8Gjs=; b=WzjpjQfpBx0/OmANip+DaqIOXBLBb7Z/dDIxwGpg3sBfjB6D8Q42Wdy036/sb9DKtT XOZqqCSTQlvHk2I3/i2BP7KM0uity/7bx3RZ0qZdXo2xQ8MQXwYe/3ySIVMBRoy3g24a Bzn/3XNdcg4prXx7IN2sUaJEqZSxg5W1YwzHe8Mjpcl50tF/fJALPHZXwDKN09cdwtuZ MMrqZOrYmp2OOS4CYQInWyTTCHa4kW3STIRd8S5T4ZC9MfiGiuOc8TkdX7EObNJCgTCV 5n3CCXx+JF6ioR4uLuhNt1G9fwXv024xfEjEns2J8S1EMv9MCfBjWFUGbtf9qbv77s9C VfPQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i16si976503ejc.140.2019.10.03.03.50.37; Thu, 03 Oct 2019 03:51:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729621AbfJCKtJ (ORCPT + 99 others); Thu, 3 Oct 2019 06:49:09 -0400 Received: from foss.arm.com ([217.140.110.172]:41264 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727756AbfJCKtJ (ORCPT ); Thu, 3 Oct 2019 06:49:09 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 428721000; Thu, 3 Oct 2019 03:49:08 -0700 (PDT) Received: from [10.37.12.210] (unknown [10.37.12.210]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A282B3F706; Thu, 3 Oct 2019 03:49:04 -0700 (PDT) Subject: Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support To: daniel.thompson@linaro.org, mathieu.poirier@linaro.org Cc: saiprakash.ranjan@codeaurora.org, jeffrey.l.hugo@gmail.com, mark.rutland@arm.com, rnayak@codeaurora.org, alexander.shishkin@linux.intel.com, linux-arm-msm@vger.kernel.org, marc.w.gonzalez@free.fr, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, david.brown@linaro.org, agross@kernel.org, sibis@codeaurora.org, leo.yan@linaro.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm-owner@vger.kernel.org References: <90114e06825e537c3aafd3de5c78743a9de6fadc.1564550873.git.saiprakash.ranjan@codeaurora.org> <16212a577339204e901cf4eefa5e82f1@codeaurora.org> <5b8835905a704fb813714694a792df54@codeaurora.org> <20191003102023.qk6ik5vmatheaofs@holly.lan> From: Suzuki K Poulose Message-ID: <57349bda-0e86-5fe0-3be0-55b12748c346@arm.com> Date: Thu, 3 Oct 2019 11:52:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20191003102023.qk6ik5vmatheaofs@holly.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/03/2019 11:20 AM, Daniel Thompson wrote: > 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 ? Or like Mathieu said, all the Coresight specific nodes could be moved in to say, msm8998-coresight.dtsi and could be included into the platforms where it actually works. Suzuki