devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH Resend v2 0/2] arm64: Add PMU node for APM X-Gene Storm SoC
@ 2014-08-13 18:32 Feng Kan
       [not found] ` <1407954730-9768-1-git-send-email-fkan-qTEPVZfXA3Y@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Feng Kan @ 2014-08-13 18:32 UTC (permalink / raw)
  To: patches-qTEPVZfXA3Y,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	dann.frazier-Z7WLFzj8eWMS+FvcfC7Uqw
  Cc: Feng Kan

This patch series adds PMU node for APM X-Gene's Potenza CPU.
Potenza CPU PMU is compatible with ARMv8-PMUv3.

I am resending this patch since the original author has left the company and
I am taking over for the work. There is no change to the original patch.

Just a comment on the dependency on the second part of the patch. Though I
agree that without the GIC patch, perf utility does not function correctly on
our current platform. However, it also requires the correct bootloader to be
installed to perform the correct actions. This does not break Linux, which
lead me to remove the statement in the previous attempt. I have since put
back the statement and hope that the maintainer would provide some guidance
on if the patch would be postponed because the dependancy.

Feng Kan (2):
  dt-bindings: Add Potenza PMU binding
  arm64: dts: Add PMU node for APM X-Gene Storm SOC

 Documentation/devicetree/bindings/arm/pmu.txt | 1 +
 arch/arm64/boot/dts/apm-storm.dtsi            | 5 +++++
 2 files changed, 6 insertions(+)

-- 
1.9.1

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

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

* [PATCH Resend v2 1/2] dt-bindings: Add Potenza PMU binding
       [not found] ` <1407954730-9768-1-git-send-email-fkan-qTEPVZfXA3Y@public.gmane.org>
@ 2014-08-13 18:32   ` Feng Kan
  2014-08-13 18:32   ` [PATCH Resend v2 2/2] arm64: dts: Add PMU node for APM X-Gene Storm SOC Feng Kan
  2014-08-13 22:31   ` [PATCH Resend v2 0/2] arm64: Add PMU node for APM X-Gene Storm SoC Dann Frazier
  2 siblings, 0 replies; 4+ messages in thread
From: Feng Kan @ 2014-08-13 18:32 UTC (permalink / raw)
  To: patches-qTEPVZfXA3Y,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	dann.frazier-Z7WLFzj8eWMS+FvcfC7Uqw
  Cc: Feng Kan, Vinayak Kale

From: Vinayak Kale <vkale-qTEPVZfXA3Y@public.gmane.org>

This patch documents the compatible string for APM X-Gene Potenza CPU's PMU.

Signed-off-by: Vinayak Kale <vkale-qTEPVZfXA3Y@public.gmane.org>
Signed-off-by: Feng Kan <fkan-qTEPVZfXA3Y@public.gmane.org>
---
 Documentation/devicetree/bindings/arm/pmu.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/pmu.txt b/Documentation/devicetree/bindings/arm/pmu.txt
index 75ef91d..6d268b3 100644
--- a/Documentation/devicetree/bindings/arm/pmu.txt
+++ b/Documentation/devicetree/bindings/arm/pmu.txt
@@ -7,6 +7,7 @@ representation in the device tree should be done as under:-
 Required properties:
 
 - compatible : should be one of
+	"apm,potenza-pmu"
 	"arm,armv8-pmuv3"
 	"arm,cortex-a17-pmu"
 	"arm,cortex-a15-pmu"
-- 
1.9.1

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

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

* [PATCH Resend v2 2/2] arm64: dts: Add PMU node for APM X-Gene Storm SOC
       [not found] ` <1407954730-9768-1-git-send-email-fkan-qTEPVZfXA3Y@public.gmane.org>
  2014-08-13 18:32   ` [PATCH Resend v2 1/2] dt-bindings: Add Potenza PMU binding Feng Kan
@ 2014-08-13 18:32   ` Feng Kan
  2014-08-13 22:31   ` [PATCH Resend v2 0/2] arm64: Add PMU node for APM X-Gene Storm SoC Dann Frazier
  2 siblings, 0 replies; 4+ messages in thread
From: Feng Kan @ 2014-08-13 18:32 UTC (permalink / raw)
  To: patches-qTEPVZfXA3Y,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	dann.frazier-Z7WLFzj8eWMS+FvcfC7Uqw
  Cc: Feng Kan, Vinayak Kale

From: Vinayak Kale <vkale-qTEPVZfXA3Y@public.gmane.org>

This patch adds the PMU device tree node for APM X-Gene Storm SOC.

Please note that this patch has dependancy on a GIC driver patch [1] which is
yet to be approved by maintainers.

[1]- https://lkml.org/lkml/2014/2/27/605
(irqchip:gic: change access of gicc_ctrl register to read modify write)

Signed-off-by: Vinayak Kale <vkale-qTEPVZfXA3Y@public.gmane.org>
Signed-off-by: Feng Kan <fkan-qTEPVZfXA3Y@public.gmane.org>
---
 arch/arm64/boot/dts/apm-storm.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi
index 40aa96c..a2bb25e 100644
--- a/arch/arm64/boot/dts/apm-storm.dtsi
+++ b/arch/arm64/boot/dts/apm-storm.dtsi
@@ -97,6 +97,11 @@
 		clock-frequency = <50000000>;
 	};
 
+	pmu {
+		compatible = "apm,potenza-pmu", "arm,armv8-pmuv3";
+		interrupts = <1 12 0xff04>;
+	};
+
 	soc {
 		compatible = "simple-bus";
 		#address-cells = <2>;
-- 
1.9.1

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

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

* Re: [PATCH Resend v2 0/2] arm64: Add PMU node for APM X-Gene Storm SoC
       [not found] ` <1407954730-9768-1-git-send-email-fkan-qTEPVZfXA3Y@public.gmane.org>
  2014-08-13 18:32   ` [PATCH Resend v2 1/2] dt-bindings: Add Potenza PMU binding Feng Kan
  2014-08-13 18:32   ` [PATCH Resend v2 2/2] arm64: dts: Add PMU node for APM X-Gene Storm SOC Feng Kan
@ 2014-08-13 22:31   ` Dann Frazier
  2 siblings, 0 replies; 4+ messages in thread
From: Dann Frazier @ 2014-08-13 22:31 UTC (permalink / raw)
  To: Feng Kan
  Cc: patches-qTEPVZfXA3Y, linux-arm-kernel,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Wed, Aug 13, 2014 at 12:32 PM, Feng Kan <fkan-qTEPVZfXA3Y@public.gmane.org> wrote:
> This patch series adds PMU node for APM X-Gene's Potenza CPU.
> Potenza CPU PMU is compatible with ARMv8-PMUv3.
>
> I am resending this patch since the original author has left the company and
> I am taking over for the work. There is no change to the original patch.
>
> Just a comment on the dependency on the second part of the patch. Though I
> agree that without the GIC patch, perf utility does not function correctly on
> our current platform. However, it also requires the correct bootloader to be
> installed to perform the correct actions. This does not break Linux, which
> lead me to remove the statement in the previous attempt. I have since put
> back the statement and hope that the maintainer would provide some guidance
> on if the patch would be postponed because the dependancy.
>
> Feng Kan (2):
>   dt-bindings: Add Potenza PMU binding
>   arm64: dts: Add PMU node for APM X-Gene Storm SOC
>
>  Documentation/devicetree/bindings/arm/pmu.txt | 1 +
>  arch/arm64/boot/dts/apm-storm.dtsi            | 5 +++++
>  2 files changed, 6 insertions(+)

I can confirm that this gives me hardware counter support with perf on
X-Gene on latest linus with*out* the referenced additional GIC patch.

Tested-by: dann frazier <dann.frazier-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
--
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

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

end of thread, other threads:[~2014-08-13 22:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13 18:32 [PATCH Resend v2 0/2] arm64: Add PMU node for APM X-Gene Storm SoC Feng Kan
     [not found] ` <1407954730-9768-1-git-send-email-fkan-qTEPVZfXA3Y@public.gmane.org>
2014-08-13 18:32   ` [PATCH Resend v2 1/2] dt-bindings: Add Potenza PMU binding Feng Kan
2014-08-13 18:32   ` [PATCH Resend v2 2/2] arm64: dts: Add PMU node for APM X-Gene Storm SOC Feng Kan
2014-08-13 22:31   ` [PATCH Resend v2 0/2] arm64: Add PMU node for APM X-Gene Storm SoC Dann Frazier

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