linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@de.bosch.com>
To: <mathieu.poirier@linaro.org>
Cc: <linus.walleij@linaro.org>, <will.deacon@arm.com>,
	<linux@arm.linux.org.uk>, <robherring2@gmail.com>,
	<daniel.thompson@linaro.org>, <robbelibobban@gmail.com>,
	<Al.Grant@arm.com>, <patches@linaro.org>,
	<marcin.jabrzyk@gmail.com>, <linux-kernel@vger.kernel.org>,
	<panchaxari.prasannamurthy@linaro.org>, <r.sengupta@samsung.com>,
	<arve@android.com>, <Tony.Armitstead@arm.com>,
	<john.stultz@linaro.org>, <linux-arm-kernel@lists.infradead.org>,
	<james.king@linaro.org>, <pratikp@codeaurora.org>,
	<varshney@ti.com>, <jonas.svennebring@avagotech.com>
Subject: Re: [PATCH 07/10 v3] coresight-etm: add CoreSight ETM/PTM driver
Date: Fri, 8 Aug 2014 07:28:44 +0200	[thread overview]
Message-ID: <53E4600C.4030505@de.bosch.com> (raw)
In-Reply-To: <1407435706-19441-8-git-send-email-mathieu.poirier@linaro.org>

On 07.08.2014 20:21, mathieu.poirier@linaro.org wrote:
> From: Pratik Patel <pratikp@codeaurora.org>
>
> This driver manages CoreSight ETM (Embedded Trace Macrocell) that
> supports processor tracing. Currently supported version are ARM
> ETMv3.x and PTM1.x.
>
> Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
> Signed-off-by: Panchaxari Prasannamurthy <panchaxari.prasannamurthy@linaro.org>
> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
> ---
...
> +static struct amba_id etm_ids[] = {
> +	{	/* ETM 3.3 */
> +		.id	= 0x0003b921,
> +		.mask	= 0x0003ffff,
> +	},
> +	{	/* ETM 3.5 */
> +		.id	= 0x0003b956,
> +		.mask	= 0x0003ffff,
> +	},
> +	{	/* PTM */
> +		.id	= 0x0003b95f,
> +		.mask	= 0x0003ffff,
> +	},
> +	{ 0, 0},

Maybe you like to add PTM 1.0 [1] here, too?

Best regards

Dirk

[1]

diff --git a/drivers/coresight/coresight-etm.c 
b/drivers/coresight/coresight-etm.c
index 6f5dbc7..a7a08e6 100644
--- a/drivers/coresight/coresight-etm.c
+++ b/drivers/coresight/coresight-etm.c
@@ -1284,6 +1284,8 @@ static bool etm_arch_supported(u8 arch)
  		break;
  	case ETM_ARCH_V3_5:
  		break;
+	case PFT_ARCH_V1_0:
+		break;
  	case PFT_ARCH_V1_1:
  		break;
  	default:
@@ -1418,6 +1420,7 @@ static int etm_probe(struct amba_device *adev, 
const struct amba_id *id)
  	put_online_cpus();

  	if (etm_arch_supported(drvdata->arch) == false) {
+		dev_err(dev, "ETM arch 0x%02x not supported\n", drvdata->arch);
  		ret = -EINVAL;
  		goto err_arch_supported;
  	}
@@ -1472,11 +1475,15 @@ static struct amba_id etm_ids[] = {
  		.id	= 0x0003b921,
  		.mask	= 0x0003ffff,
  	},
+	{	/* PTM 1.0 */
+		.id	= 0x0003b950,
+		.mask	= 0x0003ffff,
+	},
  	{	/* ETM 3.5 */
  		.id	= 0x0003b956,
  		.mask	= 0x0003ffff,
  	},
-	{	/* PTM */
+	{	/* PTM 1.1 */
  		.id	= 0x0003b95f,
  		.mask	= 0x0003ffff,
  	},
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index a19420e..596ec94 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -32,6 +32,7 @@

  #define ETM_ARCH_V3_3		(0x23)
  #define ETM_ARCH_V3_5		(0x25)
+#define PFT_ARCH_V1_0		(0x30)
  #define PFT_ARCH_V1_1		(0x31)

  #define CORESIGHT_UNLOCK	(0xC5ACCE55)


  reply	other threads:[~2014-08-08  5:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-07 18:21 [PATCH 00/10 v3] Coresight framework and drivers mathieu.poirier
2014-08-07 18:21 ` [PATCH 01/10 v3] coresight: add CoreSight core layer framework mathieu.poirier
2014-08-07 18:21 ` [PATCH 02/10 v3] coresight-tmc: add CoreSight TMC driver mathieu.poirier
2014-08-07 18:21 ` [PATCH 03/10 v3] coresight-tpiu: add CoreSight TPIU driver mathieu.poirier
2014-08-07 18:21 ` [PATCH 04/10 v3] coresight-etb: add CoreSight ETB driver mathieu.poirier
2014-08-07 18:21 ` [PATCH 05/10 v3] coresight-funnel: add CoreSight Funnel driver mathieu.poirier
2014-08-07 18:21 ` [PATCH 06/10 v3] coresight-replicator: add CoreSight Replicator driver mathieu.poirier
2014-08-07 18:21 ` [PATCH 07/10 v3] coresight-etm: add CoreSight ETM/PTM driver mathieu.poirier
2014-08-08  5:28   ` Dirk Behme [this message]
2014-08-08 13:55     ` Mathieu Poirier
2014-08-08 16:58   ` Al Grant
2014-08-07 18:21 ` [PATCH 08/10 v3] coresight: adding support for beagle and beagleXM mathieu.poirier
2014-08-07 18:21 ` [PATCH 09/10 v3] coresight: adding basic support for Vexpress TC2 mathieu.poirier
2014-08-07 18:21 ` [PATCH 10/10 v3] ARM: removing support for etb/etm in "arch/arm/kernel/" mathieu.poirier
2014-08-07 19:42 ` [PATCH 00/10 v3] Coresight framework and drivers Sam Ravnborg
2014-08-08 14:39 ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53E4600C.4030505@de.bosch.com \
    --to=dirk.behme@de.bosch.com \
    --cc=Al.Grant@arm.com \
    --cc=Tony.Armitstead@arm.com \
    --cc=arve@android.com \
    --cc=daniel.thompson@linaro.org \
    --cc=james.king@linaro.org \
    --cc=john.stultz@linaro.org \
    --cc=jonas.svennebring@avagotech.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=marcin.jabrzyk@gmail.com \
    --cc=mathieu.poirier@linaro.org \
    --cc=panchaxari.prasannamurthy@linaro.org \
    --cc=patches@linaro.org \
    --cc=pratikp@codeaurora.org \
    --cc=r.sengupta@samsung.com \
    --cc=robbelibobban@gmail.com \
    --cc=robherring2@gmail.com \
    --cc=varshney@ti.com \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).