Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8642499ybn; Tue, 1 Oct 2019 11:02:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4vH0MdCFNbhRlD2QCU/bh601mFjHmwgLb6YUeN+Gv7msgVzsy9Q9UQHnJZVHSKZg3qA7x X-Received: by 2002:a17:906:1357:: with SMTP id x23mr25436477ejb.66.1569952923826; Tue, 01 Oct 2019 11:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569952923; cv=none; d=google.com; s=arc-20160816; b=g2s8trZyy5eHn0Z/WCKMzTx6ZXTNSLFp9EuLU/lyz9C+32Zti2nzNXyD4GAPhf2dij aKMF6TRZ5scl6Q+LyENuuYoLRum1p3595knfc1B0ZoSLwXmNXUU8NCextDE/BGJRBiSn hUA3IdudPSdBdKiRr/S5v32IbgNSMyWUcJyQNhpg1ibHMiYuf9PgS9F89Wi3NrQy7d6l QL9x6LAxfhOtNq4bvXLxlORA4gii6VwVl9JCuwF2npnfPiUt75Ob9bjJmcp7auI0vVAI FnLkPLceIRf1pmOYFJT/USLgDqgHt4rJ2/bw2g2qoQqiL50Fw0OkTxp88XdVoX4kDkiI h6Jg== 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=e3ZpzW2TyFiOL+UNzjwCdjiPvcI1e9f1za2Ko3AAr0s=; b=AicoOdKv7A22V11L7xhoEe87ovf8lr72Qh0Iqt3L3reoY+3iZDfjIWUUVhR17srOSe zU5ToxUPQmFupLWF5m5uxHFVsFv3e++ZzvN72cAImpfPth41md8q7HYqD28S8hR8JDIr MoJA9PeVnl16LYxhKDWHSo55P0r7QDY5ywfJvFI8Q7DZmhWX1Fpw25ayiogASTUOO+jO 0K1I7dBJcxKvCVecF3tCB3a819tR/ZAdXUvoCP6jmE5WKIfd9NXKriv9AqCxEoxQjxgZ dZsvtvSZxv/OdUqF3bvoVLKcZvirCTffNqA9Udj2XIYzr27EOplJF+DFrZJlAeOAJjXr yiMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rEjkaQmY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si9241426edq.163.2019.10.01.11.01.39; Tue, 01 Oct 2019 11:02:03 -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=@gmail.com header.s=20161025 header.b=rEjkaQmY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731214AbfJASBX (ORCPT + 99 others); Tue, 1 Oct 2019 14:01:23 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35925 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725844AbfJASBX (ORCPT ); Tue, 1 Oct 2019 14:01:23 -0400 Received: by mail-io1-f65.google.com with SMTP id b136so50314150iof.3; Tue, 01 Oct 2019 11:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e3ZpzW2TyFiOL+UNzjwCdjiPvcI1e9f1za2Ko3AAr0s=; b=rEjkaQmYsYDQCb6ctDX5gQepVnjXhbo4zSgtC17Bwz2P4Q/3UWeESJs9t+DbKzJRkE h2icO+Bym55hSufk12IbuzwRuxR4xcF824kYTgNkdTUMu7rukY0cRYSmcS5ev/sjJKCu JI1zgWFNKorMTLZ/lV97yJnIzK6nOEUVzkF5vKeCHEsiOPbEodIM5IFTDcKIa7xYbP9Z L0NRlgr6Pnm/4sQrFdn0EUSZRxmN51s6WWAqmyfAdrz+pCxscd6ct7HHWopSfH+rfTz6 Wj+yPETwqLPP9IqU2DERuq2e/QvlWjFsEOdq/lRm2uFEwZS8ryDRF2Qimn7qTQD8JFsg liRg== 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=e3ZpzW2TyFiOL+UNzjwCdjiPvcI1e9f1za2Ko3AAr0s=; b=XB5rUR6ZmnbwPKw5kZrD9MtockLkRn42LryiPtRZinpnxAiWGRoAn3Y/1c538NTWmv YSTRpK4otr3qHvpNdGoS7xbDql+iVR8+C0cXoLQoolK5NgeIQkaJTUXBP/sMZwxJ1k0O kmk3wK9WezdqXIfTGlZg86t9VLTVBoD9DzgLVzSvHieFc3p3F3JJcz2BFeuyJRzq41r5 ClTz+C7oRTzJQ4tOgCX57gIvEr7bsloZuwQmg3++1QdDppN2+tawJU2DVqi7s9iONkth sL0TxiSGG9B+jjKTHHphqO14uIAlQmHJUmBoBhZGtnLm64AULNkT7n2SHuttF+dAWjWB +7tA== X-Gm-Message-State: APjAAAXByuKfniOBwnDO6XZQ7OtKdI5IS947VntNwmQNEBKPzGQV6d+O cUp0n+CpHLQb0HYYgBUeocgIQeY4lyqKoAh1aRw= X-Received: by 2002:a6b:90c4:: with SMTP id s187mr6632690iod.178.1569952882448; Tue, 01 Oct 2019 11:01:22 -0700 (PDT) MIME-Version: 1.0 References: <90114e06825e537c3aafd3de5c78743a9de6fadc.1564550873.git.saiprakash.ranjan@codeaurora.org> <16212a577339204e901cf4eefa5e82f1@codeaurora.org> In-Reply-To: From: Jeffrey Hugo Date: Tue, 1 Oct 2019 12:01:11 -0600 Message-ID: Subject: Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support To: Sai Prakash Ranjan Cc: Mark Rutland , Rajendra Nayak , Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , MSM , Marc Gonzalez , lkml , Bjorn Andersson , David Brown , Andy Gross , Sibi Sankar , Leo Yan , linux-arm-kernel@lists.infradead.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, Oct 1, 2019 at 11:52 AM Sai Prakash Ranjan wrote: > > On 2019-10-01 10:14, Jeffrey Hugo wrote: > > On Tue, Oct 1, 2019 at 11:04 AM Sai Prakash Ranjan > > wrote: > >> > >> On 2019-10-01 09:13, Jeffrey Hugo wrote: > >> > Sai, > >> > > >> > This patch breaks boot on the 835 laptops. However, I haven't seen > >> > the same issue on the MTP. I wonder, is coresight expected to work > >> > with production fused devices? I wonder if thats the difference > >> > between the laptop and MTP that is causing the issue. > >> > > >> > Let me know what I can do to help debug. > >> > > >> > >> I did test on MSM8998 MTP and didn't face any issue. I am guessing > >> this > >> is the same issue which you reported regarding cpuidle? Coresight ETM > > > > Yes, its the same issue. Right now, I need both patches reverted to > > boot. > > > >> and cpuidle do not work well together since ETMs share the same power > >> domain as CPU and they might get turned off when CPU enters idle > >> states. > >> Can you try with cpuidle.off=1 cmdline or just remove idle states from > >> DT to confirm? If this is the issue, then we can try the below patch > >> from Andrew Murray for ETM save and restore: > >> > >> https://patchwork.kernel.org/patch/11097893/ > > > > Is there still value in testing this if the idle states are removed, > > yet the coresight nodes still cause issues? > > > > Funny enough, I'm using the arm64 defconfig which doesn't seem to > > select CONFIG_CORESIGHT, so I'm not even sure what would be binding to > > the DT devices... > > > > 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