From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F48DC282C0 for ; Wed, 23 Jan 2019 19:14:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0496821872 for ; Wed, 23 Jan 2019 19:14:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linaro.org header.i=@linaro.org header.b="gK7e2Hdo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726435AbfAWTOs (ORCPT ); Wed, 23 Jan 2019 14:14:48 -0500 Received: from mail-it1-f180.google.com ([209.85.166.180]:53797 "EHLO mail-it1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbfAWTOs (ORCPT ); Wed, 23 Jan 2019 14:14:48 -0500 Received: by mail-it1-f180.google.com with SMTP id g85so894609ita.3 for ; Wed, 23 Jan 2019 11:14:47 -0800 (PST) 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=u7p8/NPM4EuC6yoRUQ/OS305vumWSzl0Ko+ELPgkusU=; b=gK7e2HdoKNCFbDQR572R67Uil//vu7Ls8qCu8PPDIR7SqxTw0V/0kxxFYEWHuU+g13 I0UmI3c8lTGZcsbRoHk2uVzhofrZ5n0N7nupRMIu1LDxJZr4hdOPsasbxtPHUESLyPli kqJFgv+nKbH7FH7caG4vMalt9vT61WwBIWE3o= 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=u7p8/NPM4EuC6yoRUQ/OS305vumWSzl0Ko+ELPgkusU=; b=n7KutXuL/G6yrWpv4Oj0QylAwQap8x9RcSu7q1rCVFUvkaDD3YGexAFaQsn8LW6AjH ivlCJgaw1w9BhLnMwTwNxgHX+twr1WAFJpaGC2qxHtPiyo6KqCYiXXabl/4HJlfxr0a/ 0VrEovg1frxYSgtRhGM3yqqffJWX/CNBPOGeRg9ZYwpnKvsH+rsp6VYi96EpS5BQ13gl rVYr2hWeEMvJBa2HGUxdYjDjP+EE+rIwLkZR4GTSs9lsO7hYfV9/WUsk/L/pAzol2Vc3 hLbqPtCCXzSMEpo5M8ymJNQg0UVQ+pzS3v3oRFIUdbkY+V65QQ9AO2CV7vpGd4I1wxpf uCMg== X-Gm-Message-State: AHQUAuYuGla+oVKAGlwZK3anvQypKVUlscIqxmF/iArxWam1rP5QDT/H PmUxl/VO8RT5KbchJvCFxhpHcVwgldKhnqtGeZj2fw== X-Google-Smtp-Source: AHgI3IYZ0Uw2ywycGLzyuhZ/J6y2ZSlpNy/JSBq3YyKTupxGZeDHD4fcUdXlJ1lkhTDqBB9+kCC5taWYoX5w6lyG7Vo= X-Received: by 2002:a05:660c:34f:: with SMTP id b15mr2534695itl.146.1548270886986; Wed, 23 Jan 2019 11:14:46 -0800 (PST) MIME-Version: 1.0 References: <1bd39862-0725-70ce-6535-fdb59569f683@arm.com> <75ed74af-6946-b86d-092e-42dc16e55308@codeaurora.org> <91a90daa-9e14-2d2e-e633-2ddfdc0955bf@arm.com> <3906faf1-abbd-9c28-ad55-ed3800f06352@codeaurora.org> <5b54c6e0-7d22-ecee-486f-31333f49f84a@codeaurora.org> In-Reply-To: <5b54c6e0-7d22-ecee-486f-31333f49f84a@codeaurora.org> From: Mathieu Poirier Date: Wed, 23 Jan 2019 12:14:35 -0700 Message-ID: Subject: Re: [PATCHv4 1/4] arm64: dts: qcom: sdm845: Add Coresight support To: Sai Prakash Ranjan Cc: Suzuki K Poulose , Rob Herring , Leo Yan , Alexander Shishkin , Andy Gross , David Brown , Vivek Gautam , Doug Anderson , Stephen Boyd , Bjorn Andersson , devicetree@vger.kernel.org, Mark Rutland , Rajendra Nayak , Sibi Sankar , linux-arm-kernel , Linux Kernel Mailing List , linux-arm-msm , John Horley 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 Wed, 23 Jan 2019 at 05:12, Sai Prakash Ranjan wrote: > > Hi Suzuki, > > On 1/23/2019 1:42 AM, Suzuki K Poulose wrote: > > Hi Sai, > > > > On 01/22/2019 04:48 PM, Sai Prakash Ranjan wrote: > >> Hi Suzuki, > >> > [..] > >> > >> SDM845 has 4 Kryo 385 Gold (ARM A75) + 4 Kryo 385 Silver (ARM A55), > >> so the PID values should be same for 4 ETMs atleast. But here one > >> pid value(001bb803) is same for 6 ETMs and other one for 2 > >> ETMs(001bb802) which seems odd and hence the doubt if these pids > >> are even valid ones. > > > > Have you checked other SoCs with A55 for the ETM PID ? The drivers > > usually only care about PID0[7-0], PID1[7-0], PID2[3-0] and ignores > > the other fields that may change over revisions of the core. So, in your > > case the ETM ID could be treated as 0xbb802 and 0xbb803. > > > > Very sorry to have mislead you here. I checked again today on SDM845 and > as you said 4 ETMs based on A75 has 0xbb803 and other 4 ETMs based on > A55 has 0Xbb803. I wrongly mentioned it as 6 and 2. > > [ 6.688809] resname=etm@7040000 pid = 0x1bb803 > [ 6.694957] > [ 6.694957] resname=etm@7140000 pid = 0x1bb803 > [ 6.701135] > [ 6.701135] resname=etm@7240000 pid = 0x1bb803 > [ 6.707256] > [ 6.707256] resname=etm@7340000 pid = 0x1bb803 > [ 6.713454] > [ 6.713454] resname=etm@7440000 pid = 0x1bb802 > [ 6.719621] > [ 6.719621] resname=etm@7540000 pid = 0x1bb802 > [ 6.725814] > [ 6.725814] resname=etm@7640000 pid = 0x1bb802 > [ 6.731971] > [ 6.731971] resname=etm@7740000 pid = 0x1bb802 > Ok, so that makes sense. > So is it ok to add these to table as below in etm4x driver with the > following comment since these do not exactly match A75 and A55 PIDs > which you provided? Or any other way you prefer? That depends on whether the ETMs have been modified at all, something Suzuki has asked to be clarified. If ETMs have been modified then we need to understand how they differ from the driver's implementation. If the implementations are the same: > > @@ -1079,6 +1079,10 @@ static const struct amba_id etm4_ids[] = { > ETM4x_AMBA_ID(0x000bb95a), /* Cortex-A72 */ > ETM4x_AMBA_ID(0x000bb959), /* Cortex-A73 */ > ETM4x_AMBA_ID(0x000bb9da), /* Cortex-A35 */ > + ETM4x_AMBA_ID(0x000f0211), /* Qualcomm Kryo */ > + ETM4x_AMBA_ID(0x000f0205), /* Qualcomm Kryo */ What version of the Kryo CPU? And the above will need to be in a separate patch with the modifications to address the problem you mentionned below. > + ETM4x_AMBA_ID(0x000bb803), /* Qualcomm Kryo 385 > Cortex-A75 */ > + ETM4x_AMBA_ID(0x000bb802), /* Qualcomm Kryo 385 > Cortex-A55 */ Please add them in chronological order. > {}, > }; > > For msm8996, cpu debug module pid returned is same as ETM > which is causing the probe failure for cpu debug coresight module > as shown in below logs. > For this case, I tried adding these ids to cpu debug driver, but it > splits some errors (coresight-cpu-debug: probe of 3840000.etm failed > with error -16) since the ids are same. Can we override for this case > or there is something else we can do here? That is another problem. See this patchset [1] from Mike Leach for a description of the problem and how to fix it. [1]. https://lkml.org/lkml/2018/12/7/784 > > [ 5.480629] resname=debug@3810000 pid = 0x102f0211 > [ 5.480920] OF: graph: no port node found in /soc/debug@3810000 > [ 5.513214] coresight-etm4x: probe of 3810000.debug failed with error -22 > [ 5.524362] > [ 5.524362] resname=debug@3910000 pid = 0x102f0211 > [ 5.524888] OF: graph: no port node found in /soc/debug@3910000 > [ 5.537586] coresight-etm4x: probe of 3910000.debug failed with error -22 > [ 5.541481] > [ 5.549643] resname=debug@3a10000 pid = 0x102f0205 > [ 5.580990] OF: graph: no port node found in /soc/debug@3a10000 > [ 5.586817] coresight-etm4x: probe of 3a10000.debug failed with error -22 > [ 5.592082] > [ 5.592629] resname=debug@3b10000 pid = 0x102f0205 > [ 5.604922] OF: graph: no port node found in /soc/debug@3b10000 > [ 5.611234] coresight-etm4x: probe of 3b10000.debug failed with error -22 > > > Thanks, > Sai > > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation