devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: renesas: Add missing interrupt-affinity to PMU
@ 2018-05-07 13:40 Geert Uytterhoeven
  2018-05-07 13:40 ` [PATCH 1/2] ARM: dts: sh73a0: Add missing interrupt-affinity to PMU node Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2018-05-07 13:40 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm
  Cc: linux-renesas-soc, devicetree, Geert Uytterhoeven

	Hi Simon, Magnus,

The Cortex-A9 PMU nodes on SH-Mobile AG5 and Emma Mobile EV2 reference
two interrupts, but lack interrupt-affinity properties, leading to:

    hw perfevents: no interrupt-affinity property for /pmu, guessing.

This series adds the missing properties to fix this.

Thanks!

Geert Uytterhoeven (2):
  ARM: dts: sh73a0: Add missing interrupt-affinity to PMU node
  ARM: dts: emev2: Add missing interrupt-affinity to PMU node

 arch/arm/boot/dts/emev2.dtsi  | 5 +++--
 arch/arm/boot/dts/sh73a0.dtsi | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

-- 
2.7.4

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

* [PATCH 1/2] ARM: dts: sh73a0: Add missing interrupt-affinity to PMU node
  2018-05-07 13:40 [PATCH 0/2] ARM: dts: renesas: Add missing interrupt-affinity to PMU Geert Uytterhoeven
@ 2018-05-07 13:40 ` Geert Uytterhoeven
  2018-05-07 13:40 ` [PATCH 2/2] ARM: dts: emev2: " Geert Uytterhoeven
  2018-05-08 13:46 ` [PATCH 0/2] ARM: dts: renesas: Add missing interrupt-affinity to PMU Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2018-05-07 13:40 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm
  Cc: linux-renesas-soc, devicetree, Geert Uytterhoeven

The PMU node references two interrupts, but lacks the interrupt-affinity
property, which is required in that case:

    hw perfevents: no interrupt-affinity property for /pmu, guessing.

Add the missing property to fix this.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/sh73a0.dtsi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi
index 2bcd6a276734c527..c8d45425c3393880 100644
--- a/arch/arm/boot/dts/sh73a0.dtsi
+++ b/arch/arm/boot/dts/sh73a0.dtsi
@@ -22,7 +22,7 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		cpu@0 {
+		cpu0: cpu@0 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
 			reg = <0>;
@@ -31,7 +31,7 @@
 			power-domains = <&pd_a2sl>;
 			next-level-cache = <&L2>;
 		};
-		cpu@1 {
+		cpu1: cpu@1 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
 			reg = <1>;
@@ -96,6 +96,7 @@
 		compatible = "arm,cortex-a9-pmu";
 		interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-affinity = <&cpu0>, <&cpu1>;
 	};
 
 	cmt1: timer@e6138000 {
-- 
2.7.4


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

* [PATCH 2/2] ARM: dts: emev2: Add missing interrupt-affinity to PMU node
  2018-05-07 13:40 [PATCH 0/2] ARM: dts: renesas: Add missing interrupt-affinity to PMU Geert Uytterhoeven
  2018-05-07 13:40 ` [PATCH 1/2] ARM: dts: sh73a0: Add missing interrupt-affinity to PMU node Geert Uytterhoeven
@ 2018-05-07 13:40 ` Geert Uytterhoeven
  2018-05-08 13:46 ` [PATCH 0/2] ARM: dts: renesas: Add missing interrupt-affinity to PMU Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2018-05-07 13:40 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm
  Cc: linux-renesas-soc, devicetree, Geert Uytterhoeven

The PMU node references two interrupts, but lacks the interrupt-affinity
property, which is required in that case:

    hw perfevents: no interrupt-affinity property for /pmu, guessing.

Add the missing property to fix this.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/emev2.dtsi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/emev2.dtsi b/arch/arm/boot/dts/emev2.dtsi
index 42ea246e71cb4e20..fec1241b858ff96f 100644
--- a/arch/arm/boot/dts/emev2.dtsi
+++ b/arch/arm/boot/dts/emev2.dtsi
@@ -31,13 +31,13 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		cpu@0 {
+		cpu0: cpu@0 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
 			reg = <0>;
 			clock-frequency = <533000000>;
 		};
-		cpu@1 {
+		cpu1: cpu@1 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
 			reg = <1>;
@@ -57,6 +57,7 @@
 		compatible = "arm,cortex-a9-pmu";
 		interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-affinity = <&cpu0>, <&cpu1>;
 	};
 
 	clocks@e0110000 {
-- 
2.7.4


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

* Re: [PATCH 0/2] ARM: dts: renesas: Add missing interrupt-affinity to PMU
  2018-05-07 13:40 [PATCH 0/2] ARM: dts: renesas: Add missing interrupt-affinity to PMU Geert Uytterhoeven
  2018-05-07 13:40 ` [PATCH 1/2] ARM: dts: sh73a0: Add missing interrupt-affinity to PMU node Geert Uytterhoeven
  2018-05-07 13:40 ` [PATCH 2/2] ARM: dts: emev2: " Geert Uytterhoeven
@ 2018-05-08 13:46 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2018-05-08 13:46 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Magnus Damm, linux-renesas-soc, devicetree

On Mon, May 07, 2018 at 03:40:03PM +0200, Geert Uytterhoeven wrote:
> 	Hi Simon, Magnus,
> 
> The Cortex-A9 PMU nodes on SH-Mobile AG5 and Emma Mobile EV2 reference
> two interrupts, but lack interrupt-affinity properties, leading to:
> 
>     hw perfevents: no interrupt-affinity property for /pmu, guessing.
> 
> This series adds the missing properties to fix this.
> 
> Thanks!
> 
> Geert Uytterhoeven (2):
>   ARM: dts: sh73a0: Add missing interrupt-affinity to PMU node
>   ARM: dts: emev2: Add missing interrupt-affinity to PMU node

Thanks, applied.

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

end of thread, other threads:[~2018-05-08 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-07 13:40 [PATCH 0/2] ARM: dts: renesas: Add missing interrupt-affinity to PMU Geert Uytterhoeven
2018-05-07 13:40 ` [PATCH 1/2] ARM: dts: sh73a0: Add missing interrupt-affinity to PMU node Geert Uytterhoeven
2018-05-07 13:40 ` [PATCH 2/2] ARM: dts: emev2: " Geert Uytterhoeven
2018-05-08 13:46 ` [PATCH 0/2] ARM: dts: renesas: Add missing interrupt-affinity to PMU Simon Horman

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