All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
To: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>,
	Paul Walmsley <paul-DWxLp4Yu+b8AvxtiuMwx3w@public.gmane.org>
Cc: Linux OMAP Mailing List
	<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Linux ARM Kernel Mailing List
	<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
Subject: [PATCH 4/4] arm: dts: am4372: add pmu DT data
Date: Fri, 23 Jan 2015 17:11:44 -0600	[thread overview]
Message-ID: <1422054704-14915-5-git-send-email-balbi@ti.com> (raw)
In-Reply-To: <1422054704-14915-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org>

with this patch, performance monitors work
and show sensible data on AM43xx devices:

~# perf stat sleep 5

 Performance counter stats for 'sleep 5':

          6.079585      task-clock (msec)         #    0.001 CPUs utilized
                 3      context-switches          #    0.493 K/sec
                 0      cpu-migrations            #    0.000 K/sec
                35      page-faults               #    0.006 M/sec
           5888256      cycles                    #    0.969 GHz
           1458715      stalled-cycles-frontend   #   24.77% frontend cycles idle
           4632019      stalled-cycles-backend    #   78.67% backend  cycles idle
           1892556      instructions              #    0.32  insns per cycle
                                                  #    2.45  stalled cycles per insn
            141832      branches                  #   23.329 M/sec
             56093      branch-misses             #   39.55% of all branches

       5.018813000 seconds time elapsed

Signed-off-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
---
 arch/arm/boot/dts/am4372.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
index 861f127dfead..ea103aa970f1 100644
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -51,6 +51,14 @@
 		};
 	};
 
+	pmu {
+		compatible = "arm,cortex-a9-pmu";
+		reg = <0x4b000000 0x800000>;
+		interrutps = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
+				<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "debugss";
+	};
+
 	gic: interrupt-controller@48241000 {
 		compatible = "arm,cortex-a9-gic";
 		interrupt-controller;
-- 
2.3.0-rc1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: balbi@ti.com (Felipe Balbi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/4] arm: dts: am4372: add pmu DT data
Date: Fri, 23 Jan 2015 17:11:44 -0600	[thread overview]
Message-ID: <1422054704-14915-5-git-send-email-balbi@ti.com> (raw)
In-Reply-To: <1422054704-14915-1-git-send-email-balbi@ti.com>

with this patch, performance monitors work
and show sensible data on AM43xx devices:

~# perf stat sleep 5

 Performance counter stats for 'sleep 5':

          6.079585      task-clock (msec)         #    0.001 CPUs utilized
                 3      context-switches          #    0.493 K/sec
                 0      cpu-migrations            #    0.000 K/sec
                35      page-faults               #    0.006 M/sec
           5888256      cycles                    #    0.969 GHz
           1458715      stalled-cycles-frontend   #   24.77% frontend cycles idle
           4632019      stalled-cycles-backend    #   78.67% backend  cycles idle
           1892556      instructions              #    0.32  insns per cycle
                                                  #    2.45  stalled cycles per insn
            141832      branches                  #   23.329 M/sec
             56093      branch-misses             #   39.55% of all branches

       5.018813000 seconds time elapsed

Signed-off-by: Felipe Balbi <balbi@ti.com>
---
 arch/arm/boot/dts/am4372.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
index 861f127dfead..ea103aa970f1 100644
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -51,6 +51,14 @@
 		};
 	};
 
+	pmu {
+		compatible = "arm,cortex-a9-pmu";
+		reg = <0x4b000000 0x800000>;
+		interrutps = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
+				<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "debugss";
+	};
+
 	gic: interrupt-controller at 48241000 {
 		compatible = "arm,cortex-a9-gic";
 		interrupt-controller;
-- 
2.3.0-rc1

  parent reply	other threads:[~2015-01-23 23:11 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-23 23:11 [PATCH 0/4] arm: am43xx: add PMU support Felipe Balbi
2015-01-23 23:11 ` Felipe Balbi
2015-01-23 23:11 ` [PATCH 1/4] arm: omap: hwmod: 43xx: add DebugSS hwmod data Felipe Balbi
2015-01-23 23:11   ` Felipe Balbi
     [not found]   ` <1422054704-14915-2-git-send-email-balbi-l0cyMroinI0@public.gmane.org>
2015-01-26  2:04     ` Paul Walmsley
2015-01-26  2:04       ` Paul Walmsley
     [not found]       ` <alpine.DEB.2.02.1501260142590.5450-rwI8Ez+7Ko+d5PgPZx9QOdBPR1lH4CV8@public.gmane.org>
2015-01-26 16:56         ` Felipe Balbi
2015-01-26 16:56           ` Felipe Balbi
2015-01-26 19:49           ` Felipe Balbi
2015-01-26 19:49             ` Felipe Balbi
2015-01-27 16:01             ` Felipe Balbi
2015-01-27 16:01               ` Felipe Balbi
2015-01-27 17:12               ` Paul Walmsley
2015-01-27 17:12                 ` Paul Walmsley
2015-01-27 17:15                 ` Felipe Balbi
2015-01-27 17:15                   ` Felipe Balbi
     [not found]                   ` <20150127171532.GC14878-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-01-27 17:18                     ` Felipe Balbi
2015-01-27 17:18                       ` Felipe Balbi
     [not found]                       ` <20150127171843.GD14878-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-01-27 17:55                         ` Paul Walmsley
2015-01-27 17:55                           ` Paul Walmsley
2015-02-10 23:12                           ` Paul Walmsley
2015-02-10 23:12                             ` Paul Walmsley
2015-02-10 23:56                             ` Felipe Balbi
2015-02-10 23:56                               ` Felipe Balbi
2015-02-11  0:38                               ` Paul Walmsley
2015-02-11  0:38                                 ` Paul Walmsley
2015-01-23 23:11 ` [PATCH 2/4] arm: dts: am4372: add missing debugss clocks Felipe Balbi
2015-01-23 23:11   ` Felipe Balbi
2015-01-23 23:11 ` [PATCH 3/4] clk: ti: 43xx: add debugss clocks to DT_CLK() table Felipe Balbi
2015-01-23 23:11   ` Felipe Balbi
2015-01-24  2:25   ` Felipe Balbi
2015-01-24  2:25     ` Felipe Balbi
     [not found] ` <1422054704-14915-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org>
2015-01-23 23:11   ` Felipe Balbi [this message]
2015-01-23 23:11     ` [PATCH 4/4] arm: dts: am4372: add pmu DT data Felipe Balbi

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=1422054704-14915-5-git-send-email-balbi@ti.com \
    --to=balbi-l0cymroini0@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=paul-DWxLp4Yu+b8AvxtiuMwx3w@public.gmane.org \
    --cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.