Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp737677pxb; Tue, 3 Nov 2020 11:07:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6b5rr3lMr9BiD6qcy0wuFAV03DjEdCuYXx8MzH0MoPunzWsvDZhRv/PvbasIgcQM6mOnW X-Received: by 2002:a17:906:1614:: with SMTP id m20mr21177533ejd.258.1604430428378; Tue, 03 Nov 2020 11:07:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604430428; cv=none; d=google.com; s=arc-20160816; b=gHEicuYGPVpOVYhfNZ+VgcGyxycYF3V537dN29wibQKatq6YZalVzRWQI8A0Vh3igc TW5xaVOAt2ihZpZ0MlEPQuxBYxI8xbUFP20kGRfFgXtQUSg6PVMsv3C/h1lBDZ6lOiLO Gwld0lHQVVAcN39eTOqpeBoDbc+YarqX9fvzwi4E2NSITymy+sXRQLuI1Uvzji1FNo6W 1bjgFA0B2R5bhV7Saq2mzSbi3G63LQUhHvSupCu7o6rxGZ2mObECZr8xnVtoFVrkALQK JLbW83yIynu7nV6f5SiSpSVnbxNRlyjs9OO+Hn+fRG8Sdk50wIljTU3xLPz8h4sa1BC7 EOBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bXWx0muO7ecYMzH1YdnFMlkk5+baQEgQ629u9wRQxS0=; b=s05Gh+lFs3SKjaPGvuJuGR5m8rivlRhu+yV9abIc3C9buVz3YV7/is9cVIXemxaZgE 8Yf6e+BdlPxz5OvX9Xnf6uAxsvu5zL2WnJ+r5uWTfqBKhpgJdu4I9DkhRLMi+yZ+Y7QL QWhDojh70hwzQ4Cm14/nhCrxe1zPJTqWVuuYwMPfrgNUbBfg/1hhNks6pL6Q7FHolPcE aIFdbaM+JlqwH80IYnocr+7lvnJD+cA2NrCkMssyF8bA3441NoDYvcvKsvdLdbPx6xKn T9Ck/19wCxdTaLj60SfypVqPjbS+Dho/ZOVO4R4O027wktKv3INORsGj09oMqiaFdBu8 K1ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OZ37sC1p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id mh10si12193671ejb.704.2020.11.03.11.06.45; Tue, 03 Nov 2020 11:07:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OZ37sC1p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729085AbgKCTFL (ORCPT + 99 others); Tue, 3 Nov 2020 14:05:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727706AbgKCTFL (ORCPT ); Tue, 3 Nov 2020 14:05:11 -0500 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34C03C0613D1 for ; Tue, 3 Nov 2020 11:05:11 -0800 (PST) Received: by mail-io1-xd43.google.com with SMTP id n129so291798iod.5 for ; Tue, 03 Nov 2020 11:05:11 -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=bXWx0muO7ecYMzH1YdnFMlkk5+baQEgQ629u9wRQxS0=; b=OZ37sC1pBnK6HQ3V8ADHTuAJf36wilIJ3Qhhqmp5BmdjuJbREzoXnQtAJLNGJA7oPe uNEOHMsJ3luq6XW8MvWYqKzNk9RtxukdveIeqHe/Br1wGIobxdWBBj3vrE5psDO05lXr t1LyzrFe2RfCfhdkK6Ze2lgSiUDjOxxYrvgt0UlJbzFWBnLWEpJgwwiaijyQQ0iF2Hql gAqhijntKPs/Z1K2tec3nlrfOX2YkWE5yIyD6XAvXo3+UAeEe0ZYB5kpn0nvcx9Mjpiu VfLU/k6LX4CdH65hTzm7YlXKCQaqrrTXj/Ga9W6vcFf5cOIe6N90oSa3N4CAOvD/N+wu aQTw== 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=bXWx0muO7ecYMzH1YdnFMlkk5+baQEgQ629u9wRQxS0=; b=kLRyqvO4M6NyxwIv7cFjHbeGgNnziRE0xpx0vS+1kHdYIKsnivs32lI8uuRRwHa3ac 97RBMlyvPTh8kafEv95Cw2Cyak7zvZdO4/KevMXxVtgV54TdfwsXEIbhxu4SYE1UYLig cHWnhsxdlVRXqeUg1ijKWks0M1kz/7DlFtX2+48IT3R2fkVq2qw+KIPEeg8LiJuRSiHU hrUNJcySn5YoQDWPmTnWHYQHILz91zr0OxG3V+zteK55WqhfhgCPka1mZesB4Ta830dH i+6/gYfzuOqiIQvIJpA10L+eHLtLa8S7jwjPaKpQs/09C23rDZJSrlzoJ1yb2M+TsyQJ AHtw== X-Gm-Message-State: AOAM532Z4QTpbNg/GrXuZcKJJFaCiZWgFcF+hVs0hT2/BhNbe6vJeya6 BNr5wSiJtS3TAqis9yDpU336MaG2CQN4XYc5t9E2CSdkLuc= X-Received: by 2002:a05:6602:1352:: with SMTP id i18mr15327585iov.148.1604430310602; Tue, 03 Nov 2020 11:05:10 -0800 (PST) MIME-Version: 1.0 References: <20201028220945.3826358-1-suzuki.poulose@arm.com> <20201028220945.3826358-15-suzuki.poulose@arm.com> In-Reply-To: <20201028220945.3826358-15-suzuki.poulose@arm.com> From: Mathieu Poirier Date: Tue, 3 Nov 2020 12:04:59 -0700 Message-ID: Subject: Re: [PATCH v3 13/26] coresight: etm4x: Add commentary on the registers To: Suzuki K Poulose Cc: linux-arm-kernel , Mike Leach , Coresight ML , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Oct 2020 at 16:10, Suzuki K Poulose wrote: > > As we are about define a switch..case table for individual register > access by offset for implementing the system instruction support, > document the possible set of registers for each group to make > it easier to co-relate. s/co-relate/correlate > > Cc: Mathieu Poirier > Cc: Mike Leach > Signed-off-by: Suzuki K Poulose > --- > drivers/hwtracing/coresight/coresight-etm4x.h | 21 ++++++++++++------- > 1 file changed, 13 insertions(+), 8 deletions(-) > > diff --git a/drivers/hwtracing/coresight/coresight-etm4x.h b/drivers/hwtracing/coresight/coresight-etm4x.h > index 14e0f29db6b3..510828c73db6 100644 > --- a/drivers/hwtracing/coresight/coresight-etm4x.h > +++ b/drivers/hwtracing/coresight/coresight-etm4x.h > @@ -44,13 +44,13 @@ > #define TRCVDSACCTLR 0x0A4 > #define TRCVDARCCTLR 0x0A8 > /* Derived resources registers */ > -#define TRCSEQEVRn(n) (0x100 + (n * 4)) > +#define TRCSEQEVRn(n) (0x100 + (n * 4)) /* n = 0-2 */ > #define TRCSEQRSTEVR 0x118 > #define TRCSEQSTR 0x11C > #define TRCEXTINSELR 0x120 > -#define TRCCNTRLDVRn(n) (0x140 + (n * 4)) > -#define TRCCNTCTLRn(n) (0x150 + (n * 4)) > -#define TRCCNTVRn(n) (0x160 + (n * 4)) > +#define TRCCNTRLDVRn(n) (0x140 + (n * 4)) /* n = 0-3 */ > +#define TRCCNTCTLRn(n) (0x150 + (n * 4)) /* n = 0-3 */ > +#define TRCCNTVRn(n) (0x160 + (n * 4)) /* n = 0-3 */ > /* ID registers */ > #define TRCIDR8 0x180 > #define TRCIDR9 0x184 > @@ -59,7 +59,7 @@ > #define TRCIDR12 0x190 > #define TRCIDR13 0x194 > #define TRCIMSPEC0 0x1C0 > -#define TRCIMSPECn(n) (0x1C0 + (n * 4)) > +#define TRCIMSPECn(n) (0x1C0 + (n * 4)) /* n = 1-7 */ > #define TRCIDR0 0x1E0 > #define TRCIDR1 0x1E4 > #define TRCIDR2 0x1E8 > @@ -68,9 +68,12 @@ > #define TRCIDR5 0x1F4 > #define TRCIDR6 0x1F8 > #define TRCIDR7 0x1FC > -/* Resource selection registers */ > +/* > + * Resource selection registers, n = 2-31. > + * First pair (regs 0, 1) is always present and is reserved. > + */ > #define TRCRSCTLRn(n) (0x200 + (n * 4)) > -/* Single-shot comparator registers */ > +/* Single-shot comparator registers, n = 0-7 */ > #define TRCSSCCRn(n) (0x280 + (n * 4)) > #define TRCSSCSRn(n) (0x2A0 + (n * 4)) > #define TRCSSPCICRn(n) (0x2C0 + (n * 4)) > @@ -80,11 +83,13 @@ > #define TRCPDCR 0x310 > #define TRCPDSR 0x314 > /* Trace registers (0x318-0xEFC) */ > -/* Comparator registers */ > +/* Address Comparator registers n = 0-15 */ > #define TRCACVRn(n) (0x400 + (n * 8)) > #define TRCACATRn(n) (0x480 + (n * 8)) > +/* Data Value Comparator Value registers, n = 0-7 */ > #define TRCDVCVRn(n) (0x500 + (n * 16)) > #define TRCDVCMRn(n) (0x580 + (n * 16)) > +/* ContextID/Virtual ContextID comparators, n = 0-7 */ > #define TRCCIDCVRn(n) (0x600 + (n * 8)) > #define TRCVMIDCVRn(n) (0x640 + (n * 8)) > #define TRCCIDCCTLR0 0x680 > -- > 2.24.1 >