Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1410494

Re: [PATCH 2/5] coresight: etmv4: Fix ETMv4x peripheral ID table

Path csiph.com!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Mathieu Poirier <mathieu.poirier@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/5] coresight: etmv4: Fix ETMv4x peripheral ID table
Date Tue, 31 May 2016 19:50:01 +0200
Message-ID <rEVXH-5Js-13@gated-at.bofh.it> (permalink)
References <rEQv0-2eq-17@gated-at.bofh.it> <rEQv2-2eq-73@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=z7hW5ByzhXniruUtm1tghyjvHL1OLkaGGCq5kDyGtU8=; b=Z9EQEHm1j2E1rNVCZTTHiTi4aek9ipVxVcJeJ+IzKKQX5gw19oHUrBbOufznPsDWzO dY8Wq8bXpY7bU8HUao10b4JM9ctjwdbRvxZ3Rw+pDZvUN7Plb8l1WHZr0PpKCZa3vK7g sR+xu6gggXwzy9w9pn7Op3klBu/wbO8p4j254=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=z7hW5ByzhXniruUtm1tghyjvHL1OLkaGGCq5kDyGtU8=; b=aCJyIfmm4fAAzpPy8NpUlnvLosDKNjIXooZtbzhcMxyjlYQ08MgY1aRNjLihL47k5J kDvtxMx6UpxDd779T8p0twMzAIrZAaU5fIX13rWlDbOmqmkF9h/F75PUZjh5ebb1aDNT YhJGrhLBFDebJxHzuZJ+0mGXcXe2Fyyv1a4Yav49kip6hMMrtx6qUl853vs3+Y+B2V8C AuGagzFC8mpMjHLRs78+LR9Y6eCoZtczc/kTUP4Rv4uI6LMfm8uxHykYaTXK5TufJMER DyMj4Qqe2zuJ+fpzQQ0NwnTahZ6AlLUakEzmqhthlPlkktGbRA9hCRoe9iVxWSWhhMJO n0jg==
X-Gm-Message-State ALyK8tIKI7LqBJEYX04YjwSYD0aMP0AWvBcWTtJwBjc8oofLq/T9rKRfTYFc5fLhxG5n+3Xed1+ntB2VxWiTSG7/
MIME-Version 1.0
X-Received by 10.129.145.143 with SMTP id i137mr15886297ywg.1.1464716738628; Tue, 31 May 2016 10:45:38 -0700 (PDT)
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 58
Organization linux.* mail to news gateway
X-Original-Cc "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
X-Original-Date Tue, 31 May 2016 11:45:38 -0600
X-Original-Message-ID <CANLsYkzzogTMRdhuSc6AtFUjM7BM3xgMHqth4sJeYn=dA1=qNg@mail.gmail.com>
X-Original-References <1464695858-29284-1-git-send-email-suzuki.poulose@arm.com> <1464695858-29284-3-git-send-email-suzuki.poulose@arm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1410494

Show key headers only | View raw


On 31 May 2016 at 05:57, Suzuki K Poulose <suzuki.poulose@arm.com> wrote:
> This patch cleans up the peripheral id table for different ETMv4
> implementations.
>
> As per Cortex-A53 TRM, the ETM has following id values:
>
> Peripheral ID0  0x5D    0xFE0
> Peripheral ID1  0xB9    0xFE4
> Peripheral ID2  0x4B    0xFE8
> Peripheral ID3  0x00    0xFEC
>
> where, PID2: has the following format:
>
> [7:4]   Revision
> [3]     JEDEC   0b1     res1. Indicates a JEP106 identity code is used
> [2:0]   DES_1   0b011   ARM Limited. This is bits[6:4] of JEP106 ID code
>
> The existing table entry checks only the bits [1:0], which is not
> sufficient enough. Fix it to match bits [3:0], just like the other
> entries do. While at it, correct the comment for A57 and the A53 entry.
>
> Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
> ---
>  drivers/hwtracing/coresight/coresight-etm4x.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c
> index 462f0dc..88947f3 100644
> --- a/drivers/hwtracing/coresight/coresight-etm4x.c
> +++ b/drivers/hwtracing/coresight/coresight-etm4x.c
> @@ -815,12 +815,12 @@ err_arch_supported:
>  }
>
>  static struct amba_id etm4_ids[] = {
> -       {       /* ETM 4.0 - Qualcomm */
> -               .id     = 0x0003b95d,
> -               .mask   = 0x0003ffff,
> +       {       /* ETM 4.0 - Cortex-A53  */
> +               .id     = 0x000bb95d,
> +               .mask   = 0x000fffff,
>                 .data   = "ETM 4.0",
>         },
> -       {       /* ETM 4.0 - Juno board */
> +       {       /* ETM 4.0 - Cortex-A57 */
>                 .id     = 0x000bb95e,
>                 .mask   = 0x000fffff,
>                 .data   = "ETM 4.0",
> --
> 1.9.1
>

I'll apply this to my next tree but since it doesn't cause a core dump
or prevent the kernel from booting, I don't think it deserves to be in
-rc2.

Thanks,
Mathieu

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 2/5] coresight: etmv4: Fix ETMv4x peripheral ID table Suzuki K Poulose <suzuki.poulose@arm.com> - 2016-05-31 14:00 +0200
  Re: [PATCH 2/5] coresight: etmv4: Fix ETMv4x peripheral ID table Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-05-31 19:50 +0200

csiph-web