linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] coresight: ETM: Add support for ARM Cortex-A73
@ 2017-10-19 15:45 Suzuki K Poulose
  2017-10-30 16:25 ` Mathieu Poirier
  0 siblings, 1 reply; 2+ messages in thread
From: Suzuki K Poulose @ 2017-10-19 15:45 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: linux-kernel, Suzuki K Poulose, Mathieu Poirier

Add ARM Cortex A-73 ETM PIDs to the known ETM ips. While at it
also add description of the CPU to which the ETM belongs, to make
it easier to identify the ETM devices.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
---
 drivers/hwtracing/coresight/coresight-etm4x.c | 24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c
index cf364a514c12..e84d80b008fc 100644
--- a/drivers/hwtracing/coresight/coresight-etm4x.c
+++ b/drivers/hwtracing/coresight/coresight-etm4x.c
@@ -1034,7 +1034,8 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
 	}
 
 	pm_runtime_put(&adev->dev);
-	dev_info(dev, "%s initialized\n", (char *)id->data);
+	dev_info(dev, "CPU%d: %s initialized\n",
+			drvdata->cpu, (char *)id->data);
 
 	if (boot_enable) {
 		coresight_enable(drvdata->csdev);
@@ -1053,20 +1054,25 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
 }
 
 static const struct amba_id etm4_ids[] = {
-	{       /* ETM 4.0 - Cortex-A53  */
+	{
 		.id	= 0x000bb95d,
 		.mask	= 0x000fffff,
-		.data	= "ETM 4.0",
+		.data	= "Cortex-A53 ETM v4.0",
 	},
-	{       /* ETM 4.0 - Cortex-A57 */
+	{
 		.id	= 0x000bb95e,
 		.mask	= 0x000fffff,
-		.data	= "ETM 4.0",
+		.data	= "Cortex-A57 ETM v4.0",
 	},
-	{       /* ETM 4.0 - A72, Maia, HiSilicon */
-		.id = 0x000bb95a,
-		.mask = 0x000fffff,
-		.data = "ETM 4.0",
+	{
+		.id	= 0x000bb95a,
+		.mask	= 0x000fffff,
+		.data	= "Cortex-A72 ETM v4.0",
+	},
+	{
+		.id	= 0x000bb959,
+		.mask	= 0x000fffff,
+		.data	= "Cortex-A73 ETM v4.0",
 	},
 	{ 0, 0},
 };
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] coresight: ETM: Add support for ARM Cortex-A73
  2017-10-19 15:45 [PATCH] coresight: ETM: Add support for ARM Cortex-A73 Suzuki K Poulose
@ 2017-10-30 16:25 ` Mathieu Poirier
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Poirier @ 2017-10-30 16:25 UTC (permalink / raw)
  To: Suzuki K Poulose; +Cc: linux-arm-kernel, linux-kernel

On 19 October 2017 at 09:45, Suzuki K Poulose <suzuki.poulose@arm.com> wrote:
> Add ARM Cortex A-73 ETM PIDs to the known ETM ips. While at it
> also add description of the CPU to which the ETM belongs, to make
> it easier to identify the ETM devices.
>
> Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
> ---
>  drivers/hwtracing/coresight/coresight-etm4x.c | 24 +++++++++++++++---------
>  1 file changed, 15 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c
> index cf364a514c12..e84d80b008fc 100644
> --- a/drivers/hwtracing/coresight/coresight-etm4x.c
> +++ b/drivers/hwtracing/coresight/coresight-etm4x.c
> @@ -1034,7 +1034,8 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
>         }
>
>         pm_runtime_put(&adev->dev);
> -       dev_info(dev, "%s initialized\n", (char *)id->data);
> +       dev_info(dev, "CPU%d: %s initialized\n",
> +                       drvdata->cpu, (char *)id->data);
>
>         if (boot_enable) {
>                 coresight_enable(drvdata->csdev);
> @@ -1053,20 +1054,25 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
>  }
>
>  static const struct amba_id etm4_ids[] = {
> -       {       /* ETM 4.0 - Cortex-A53  */
> +       {
>                 .id     = 0x000bb95d,
>                 .mask   = 0x000fffff,
> -               .data   = "ETM 4.0",
> +               .data   = "Cortex-A53 ETM v4.0",
>         },
> -       {       /* ETM 4.0 - Cortex-A57 */
> +       {
>                 .id     = 0x000bb95e,
>                 .mask   = 0x000fffff,
> -               .data   = "ETM 4.0",
> +               .data   = "Cortex-A57 ETM v4.0",
>         },
> -       {       /* ETM 4.0 - A72, Maia, HiSilicon */
> -               .id = 0x000bb95a,
> -               .mask = 0x000fffff,
> -               .data = "ETM 4.0",
> +       {
> +               .id     = 0x000bb95a,
> +               .mask   = 0x000fffff,
> +               .data   = "Cortex-A72 ETM v4.0",
> +       },
> +       {
> +               .id     = 0x000bb959,
> +               .mask   = 0x000fffff,
> +               .data   = "Cortex-A73 ETM v4.0",
>         },
>         { 0, 0},
>  };

Applied, thanks for fixing that.

Mathieu

> --
> 2.13.6
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-30 16:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-19 15:45 [PATCH] coresight: ETM: Add support for ARM Cortex-A73 Suzuki K Poulose
2017-10-30 16:25 ` Mathieu Poirier

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).