Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp449215ybn; Thu, 3 Oct 2019 07:24:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyenwObhklzGVCkL+v1MKprmg9TciU0T+ynmb6a5YWMuueK+0GAaomBDWtbtSMCYtyD7+k8 X-Received: by 2002:a50:e616:: with SMTP id y22mr9764410edm.253.1570112649784; Thu, 03 Oct 2019 07:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570112649; cv=none; d=google.com; s=arc-20160816; b=YNCHe1Mec0nX17aKBI2bTAh5vDQZGRfTWcDu3Z3Hmjq59Li96q4fl/Jmyj2taTKcPf IMcsd0ovpiY9cSM0+a5o/wi0u8mi6dAL7o+HtiGmqhAyYBsFjMSsIiTPVIg1M0rL29dX Fjd6X0DYBP/OhT3DUrpdFp4aTi3p91e+dKcXjfodE+JLM46VSLJQizRGamfnhtfwkVou Ai4OIWOWu/RIb0Zds8YxcR2xNPd/acgZqy+hzejmoJmLWHpRTYghryz/YMP15CmM46Ax MksSyEE+wVco7lh8V/5mUpr+soh63dycz9bcDiwmoFSpiCprBgTL+sSeYh5OgNIfzqq8 8Ibw== 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=Eds4WlKNrSquM0FM6dtReZhXBU6tEApFNM4AAkDONtU=; b=JjbkotfV5CcRxmtn+jWWdUfjhy5jsrIpyWvHKUz6IJuPLwfHdc1vbyVrljeTDujIU1 /SfIlWSnauRaWgdRfPRBH6DOXBnQ+AAiAxfBTfMPyLUm3gKuF0R/9zQBrNQnBRQBqGU8 Dbnr+Ckv7c2Tuj4sgIKYNd9LVuH2NxJe2SnCjcR4LZz7/DeTqjLqzP1Gjb+rB2zX7mxe 9iEbR1DSomGudO1i2LPEgH+inHdsxbCwf3ypOcyZppQf+hHm+YKaJxK7L3OREnHELP3p WtoP67BnW4ebLv0+/Hz8ooMUvxT97OEN+V4LRgr1hf0aygIKshpxNhsfsVV+IQ708Z3A CzuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uhaA79/w"; 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 si30si1303152ejb.92.2019.10.03.07.23.44; Thu, 03 Oct 2019 07:24:09 -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="uhaA79/w"; 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 S1730011AbfJCMwV (ORCPT + 99 others); Thu, 3 Oct 2019 08:52:21 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40019 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728219AbfJCMwV (ORCPT ); Thu, 3 Oct 2019 08:52:21 -0400 Received: by mail-wr1-f66.google.com with SMTP id l3so2768059wru.7 for ; Thu, 03 Oct 2019 05:52:19 -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=Eds4WlKNrSquM0FM6dtReZhXBU6tEApFNM4AAkDONtU=; b=uhaA79/wTDQRJkGDfiqBzI5XyjkUmklCrjoS8TobGc4hXYPoRoNUAdn1DXDVjc9TcF pldCe3JghlMjVZYFcmYZB0Dk/IlF1TbFoJSM0tiAiKd3SSK4CjnWL2dJ61epJ8tHVPk8 NnBBDCgK8eGDxi0h1JIGOXDkmh1W8IBedQbSclnfe32vu2C7qBbQ7JsA1GdT6HIgwcCT x6lx/jlQhKyY9+7pj5iWXPCp31g13S5LS4Bs3dklE17QYVwg6BOwMrQihm8Tquz7avGl qOgncHx1wgqO4ugywE+++VQhG3NeRcBOYdu6Wucq1HpsqCjv+gFcKolIvOAxGvs3IOUY 6+9A== 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=Eds4WlKNrSquM0FM6dtReZhXBU6tEApFNM4AAkDONtU=; b=RTqdzQZ08uRUVMIsU0rGhAi5WiVvl5KgpjJJCu+7walwOwdIIjIRdAh0d2UXrot6VJ JjJBVogggSbxpVsUTs5EyiTzW+Fx+ixJ8gsrDeeINq3gntr6tjoUMXAM1KZLUI44yCS/ Yzn4YYoRXffp6JO3VyfcCy4Dy2JG8XeeqYtyVM8TKhs9VU1gcSR2HDEYw4mZmh34ezCq 734J0392ZpHiTHMd+OU/wfbfzeAwZAgmiQsyCHScgz+B4ngVr23KqcMau9rn9LZXJak/ rXKQj4dlzCSFfSfSlYvxZ6C9EKk6hIQUDFhvJh2YkCMK1u+tbJjrVaY5BUe0vEMHhStL ABWw== X-Gm-Message-State: APjAAAUmcAHyzicmOQGhvlxXofwppIXYmJqYZAlZMW8eBuAeyr9idpwM cCkfpX7wEOzbW1DZlpPX4I4smQ== X-Received: by 2002:adf:ea12:: with SMTP id q18mr7494629wrm.323.1570107139009; Thu, 03 Oct 2019 05:52:19 -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 z125sm4282266wme.37.2019.10.03.05.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2019 05:52:18 -0700 (PDT) Date: Thu, 3 Oct 2019 13:52:16 +0100 From: Daniel Thompson To: Suzuki K Poulose Cc: mathieu.poirier@linaro.org, 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 Subject: Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support Message-ID: <20191003125216.f5sjl6yhhb2t7uqq@holly.lan> References: <90114e06825e537c3aafd3de5c78743a9de6fadc.1564550873.git.saiprakash.ranjan@codeaurora.org> <16212a577339204e901cf4eefa5e82f1@codeaurora.org> <5b8835905a704fb813714694a792df54@codeaurora.org> <20191003102023.qk6ik5vmatheaofs@holly.lan> <57349bda-0e86-5fe0-3be0-55b12748c346@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57349bda-0e86-5fe0-3be0-55b12748c346@arm.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 03, 2019 at 11:52:36AM +0100, Suzuki K Poulose wrote: > 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. Sure, that works too. Maybe it depends in you view the mtp as including the feature or as the laptops as taking it away ;-) . Treating it as a feature a board can disable also works nicely on systems where the board include file should be setting secure-status a board (although that's probably not the case for these boards since the firmware is proprietary). Daniel.