Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp971207ybn; Wed, 2 Oct 2019 08:57:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhSZfWvghx2A8usoAfY6DtxTCtA/BjEKkXxc4ghdN2ucK7eZqIEXAWaLvZP4rPxFgvz3Pb X-Received: by 2002:aa7:d38e:: with SMTP id x14mr4709561edq.102.1570031833728; Wed, 02 Oct 2019 08:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570031833; cv=none; d=google.com; s=arc-20160816; b=cG64KJrl9zJK3lJSibK4GI0cQNG7OYXtlQtWOz+KUz6GeYHgKm8ckwHXb2UghLcom0 YniXZ+tdO1YlGCPrMaFq6Qutv3wFEtI1waaiR8RY/G6ybt5Dpq3mylu/GDFrT2Qm4ZOd YbJzkcgyo6cK/JB3rTnF7G7puzjh2gO8Qubg/YOhWu5qzdtlO8ftxilZTO+OY+Br3Lyt q/QVMhFP86GyZedg3U7zxv6Rto8FcFhu6pBMzfqGFtmQWcDsu044WZLpSx5q9Ytdq0NM NIG8qlw2dadi4c+qmKKD+Iyyuf216KfcgdtqM3OLyD5avR69LeiDAB60jJipl1cMuaHt DIWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wKEiSm5kf8Odz4O9V4syYYT9QXFs1CapfQip+K78N1Q=; b=whUpmZlJ/9u0Bw21krB8mYrccdKwj3LuvphzF0ip61YhZ0RJyOSlIQMo6JnH2JzFwr kGeR5mWwzMk/dkBuxnSnheoq216ChFSQRwOrPQtEEXGjmq8NsTMgCgy8kw0N9v3PqYZo C7g9tOLKub20adqa3naodk4JH99wMUm7VFvOoAZSb1zDoKYe/6ZBZsztF4erXNZbjkbx hodd8e+qvRAigIqVwwIcoS342CsRd8rIcmEcm8/oO9JJ3vRWqhWGAf1KLiHzOa1jVPbH wDOO3EK9wgX29IwizyTZitYvMZrKdOtEUvTTcCd6Fv51kIrB0TPNy7touQwYSjc1J4+U /F5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UJCV21vc; 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 w11si12593577edi.442.2019.10.02.08.56.49; Wed, 02 Oct 2019 08:57:13 -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=UJCV21vc; 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 S1727866AbfJBPEM (ORCPT + 99 others); Wed, 2 Oct 2019 11:04:12 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35981 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727247AbfJBPEL (ORCPT ); Wed, 2 Oct 2019 11:04:11 -0400 Received: by mail-io1-f65.google.com with SMTP id b136so57626529iof.3 for ; Wed, 02 Oct 2019 08:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wKEiSm5kf8Odz4O9V4syYYT9QXFs1CapfQip+K78N1Q=; b=UJCV21vcbOZDpnikF0Nwo722YgIaKo9iQ9l5Wdq2Q+hCARQ293ZG3YmIr2Dum7pslG YoF/4cJ+g6nR9uscySy3q/XQJgppI9+Ylh8HwkJhA7ND0phejKf4nys1J//ydAoNV/xR rpYfpdRISzWZRu8ikWhqck9OBuFxFR8LijNMWYuOcqkj0cTlVqcCK8q8oFtLsC64NtOi yLgChFxA96KayDjMnrUM+aIq8OBz272fah8XMV8IkIEFyMBUq+cK+VOylxZeoJ+Ym5Fn CUyCShhE6T0ksjHT/D4AsGkHiZKXpE4tA3aMcILeIqmHd4y3TNB8Q+/Z/7OFVoXKtVX4 BmfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wKEiSm5kf8Odz4O9V4syYYT9QXFs1CapfQip+K78N1Q=; b=TFFoFMhhBRAdSNRpSugSv2IxEVZSeLqIzLFc4xVJHAXLmH3QAso5XuG8sm6zyU+gpV Lh2gQAbcjwe9odA0NVLB16gbxdMQfrApb5zbiqu6agetDCOUOjXXR+inwZDZZBWap1n2 i0lsga9/Be24ByY9Vcx6ySXdzcGjn7ZjY4SOauBqm+gWp+DC69UX5DIl56g6+Hu2JJbU 8pMZ67JTPXv5K92lK9f5NBdm3oyoW0YNwokmaOxZ3af9tP25bcwlsGWhT5JTBztRXy8v 69YcY2PIbqPUVLnlAQ5pxRgK9Gz6Rj8Oaw32HKjAT1zREZ/+WXeHwnbwvjVimERbSDge M/Lg== X-Gm-Message-State: APjAAAVj3plDeDzqzifRIJ02OA5fUn7XH/WgXoLr8woY21LDc/d4XFJq PadYLgfPdSiM/5yP/7VR8xLC4XwMkHZK0UZNny3w4Q== X-Received: by 2002:a6b:6b06:: with SMTP id g6mr3755891ioc.72.1570028650863; Wed, 02 Oct 2019 08:04:10 -0700 (PDT) MIME-Version: 1.0 References: <90114e06825e537c3aafd3de5c78743a9de6fadc.1564550873.git.saiprakash.ranjan@codeaurora.org> <16212a577339204e901cf4eefa5e82f1@codeaurora.org> <5b8835905a704fb813714694a792df54@codeaurora.org> In-Reply-To: <5b8835905a704fb813714694a792df54@codeaurora.org> From: Mathieu Poirier Date: Wed, 2 Oct 2019 09:03:59 -0600 Message-ID: Subject: Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support To: Sai Prakash Ranjan Cc: 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Which of the above ends up being the final solution is entirely up to David and Andy. Regards, Mathieu > > Thanks, > Sai