arm64: dts: r8a7796: Add Secondary CPU Cores
Subsystems (2)
Geert Uytterhoeven
maintainerv2 cover arm64: dts: r8a7796: Add Secondary CPU Cores
Hi Simon, Magnus,
This patch series adds the second Cortex-A57 CPU core, the Cortex-A57 PMU, and the Cortex-A53 L2 cache-controller, CPU, and PMU nodes on the Renesas R-Car M3-W SoC to its DTS file.
Note that these patches add hardware description; actual enabling of the CPU depends on the PSCI firmware.
With the current firmware version (v2.16.0), only the CA57 CPU cores are enabled, hence the last patch does not introduce undeterministic scheduling behavior due to migration between big and LITTLE cores.
Changes compared to v1:
- Add Cortex-A57 and Cortex-A53 PMU nodes,
- Drop unit address and reg property for integrated cache-controller.
Tested on r8a7796/salvator-x, with CPU hot(un)plug and system suspend.
Thanks for applying!
Geert Uytterhoeven (3):
arm64: dts: r8a7796: Add CA53 L2 cache-controller node
arm64: dts: r8a7796: Add Cortex-A53 CPU cores
arm64: dts: r8a7796: Add Cortex-A53 PMU node
Takeshi Kihara (2):
arm64: dts: r8a7796: Add Cortex-A57 CPU cores
arm64: dts: r8a7796: Add Cortex-A57 PMU node
arch/arm64/boot/dts/renesas/r8a7796.dtsi | 83 +++++++++++++++++++++++++++++--- 1 file changed, 77 insertions(+), 6 deletions(-)
Signature · 12 lines
2.7.4
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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 TorvaldsGeert Uytterhoeven
maintainerPATCH v2 1/5 arm64: dts: r8a7796: Add Cortex-A57 CPU cores
From: Takeshi Kihara <[email protected]>
This patch adds Cortex-A57 CPU cores to R8A7796 SoC for a total of 2 x Cortex-A57.
---
v2:
- No changes.
--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +14 -6
@@ -37,7 +37,6 @@ #address-cells = <1>; #size-cells = <0>; - /* 1 core only at this point */ a57_0: cpu at 0 { compatible = "arm,cortex-a57", "arm,armv8"; reg = <0x0>;
@@ -47,6 +46,15 @@ enable-method = "psci"; }; + a57_1: cpu at 1 { + compatible = "arm,cortex-a57","arm,armv8"; + reg = <0x1>; + device_type = "cpu"; + power-domains = <&sysc R8A7796_PD_CA57_CPU1>; + next-level-cache = <&L2_CA57>; + enable-method = "psci"; + }; + L2_CA57: cache-controller-0 { compatible = "cache"; power-domains = <&sysc R8A7796_PD_CA57_SCU>;
@@ -100,7 +108,7 @@ <0x0 0xf1040000 0 0x20000>, <0x0 0xf1060000 0 0x20000>; interrupts = <GIC_PPI 9 - (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>; + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; clocks = <&cpg CPG_MOD 408>; clock-names = "clk"; power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
@@ -109,13 +117,13 @@ timer { compatible = "arm,armv8-timer"; interrupts = <GIC_PPI 13 - (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 - (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 - (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 10 - (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>; + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>; }; wdt0: watchdog at e6020000 {
Signature · 1 line
2.7.4
Geert Uytterhoeven
maintainerPATCH v2 2/5 arm64: dts: r8a7796: Add Cortex-A57 PMU node
In reply to Geert UytterhoevenFrom: Takeshi Kihara <[email protected]>
Enable the performance monitor unit for the Cortex-A57 cores on the R8A7796 SoC.
---
v2:
- New.
--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +8 -0
@@ -252,6 +252,14 @@ reg = <0 0xe6060000 0 0x50c>; }; + pmu_a57 { + compatible = "arm,cortex-a57-pmu"; + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; + interrupt-affinity = <&a57_0>, + <&a57_1>; + }; + cpg: clock-controller at e6150000 { compatible = "renesas,r8a7796-cpg-mssr"; reg = <0 0xe6150000 0 0x1000>;
Signature · 1 line
2.7.4
Geert Uytterhoeven
maintainerPATCH v2 3/5 arm64: dts: r8a7796: Add CA53 L2 cache-controller node
In reply to Geert UytterhoevenAdd a device node for the Cortex-A53 L2 cache-controller.
The L2 cache for the Cortex-A53 CPU cores is 512 KiB large (organized as 32 KiB x 16 ways).
Extracted from a patch by Takeshi Kihara in the BSP.
---
v2:
- Drop unit address and reg property for integrated cache-controller.
--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +7 -0
@@ -61,6 +61,13 @@ cache-unified; cache-level = <2>; }; + + L2_CA53: cache-controller-1 { + compatible = "cache"; + power-domains = <&sysc R8A7796_PD_CA53_SCU>; + cache-unified; + cache-level = <2>; + }; }; extal_clk: extal {
Signature · 1 line
2.7.4
Geert Uytterhoeven
maintainerPATCH v2 4/5 arm64: dts: r8a7796: Add Cortex-A53 CPU cores
In reply to Geert UytterhoevenThis patch adds Cortex-A53 CPU cores of R8A7796 SoC, and sets a total of 6 cores (2 x Cortex-A57 + 4 x Cortex-A53).
Based on a patch by Takeshi Kihara in the BSP.
---
v2:
- No changes.
--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 46 ++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +41 -5
@@ -55,6 +55,42 @@ enable-method = "psci"; }; + a53_0: cpu at 100 { + compatible = "arm,cortex-a53", "arm,armv8"; + reg = <0x100>; + device_type = "cpu"; + power-domains = <&sysc R8A7796_PD_CA53_CPU0>; + next-level-cache = <&L2_CA53>; + enable-method = "psci"; + }; + + a53_1: cpu at 101 { + compatible = "arm,cortex-a53","arm,armv8"; + reg = <0x101>; + device_type = "cpu"; + power-domains = <&sysc R8A7796_PD_CA53_CPU1>; + next-level-cache = <&L2_CA53>; + enable-method = "psci"; + }; + + a53_2: cpu at 102 { + compatible = "arm,cortex-a53","arm,armv8"; + reg = <0x102>; + device_type = "cpu"; + power-domains = <&sysc R8A7796_PD_CA53_CPU2>; + next-level-cache = <&L2_CA53>; + enable-method = "psci"; + }; + + a53_3: cpu at 103 { + compatible = "arm,cortex-a53","arm,armv8"; + reg = <0x103>; + device_type = "cpu"; + power-domains = <&sysc R8A7796_PD_CA53_CPU3>; + next-level-cache = <&L2_CA53>; + enable-method = "psci"; + }; + L2_CA57: cache-controller-0 { compatible = "cache"; power-domains = <&sysc R8A7796_PD_CA57_SCU>;
@@ -115,7 +151,7 @@ <0x0 0xf1040000 0 0x20000>, <0x0 0xf1060000 0 0x20000>; interrupts = <GIC_PPI 9 - (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; + (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>; clocks = <&cpg CPG_MOD 408>; clock-names = "clk"; power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
@@ -124,13 +160,13 @@ timer { compatible = "arm,armv8-timer"; interrupts = <GIC_PPI 13 - (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, + (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 - (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, + (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 - (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, + (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 10 - (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>; + (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>; }; wdt0: watchdog at e6020000 {
Signature · 1 line
2.7.4
Geert Uytterhoeven
maintainerPATCH v2 5/5 arm64: dts: r8a7796: Add Cortex-A53 PMU node
In reply to Geert UytterhoevenEnable the performance monitor unit for the Cortex-A53 cores on the R8A7796 SoC.
Extracted from a patch by Takeshi Kihara in the BSP.
---
v2:
- New.
--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +12 -0
@@ -303,6 +303,18 @@ <&a57_1>; }; + pmu_a53 { + compatible = "arm,cortex-a53-pmu"; + interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; + interrupt-affinity = <&a53_0>, + <&a53_1>, + <&a53_2>, + <&a53_3>; + }; + cpg: clock-controller at e6150000 { compatible = "renesas,r8a7796-cpg-mssr"; reg = <0 0xe6150000 0 0x1000>;
Signature · 1 line
2.7.4
v2 cover arm64: dts: r8a7796: Add Secondary CPU Cores
In reply to Geert UytterhoevenQuoted 13 lines · Geert Uytterhoeven
Hi Simon, Magnus,
This patch series adds the second Cortex-A57 CPU core, the Cortex-A57 PMU, and the Cortex-A53 L2 cache-controller, CPU, and PMU nodes on the Renesas R-Car M3-W SoC to its DTS file.
Note that these patches add hardware description; actual enabling of the CPU depends on the PSCI firmware.
With the current firmware version (v2.16.0), only the CA57 CPU cores are enabled, hence the last patch does not introduce undeterministic scheduling behavior due to migration between big and LITTLE cores.
Quoted 7 lines
Changes compared to v1:
- Add Cortex-A57 and Cortex-A53 PMU nodes,
- Drop unit address and reg property for integrated cache-controller.Tested on r8a7796/salvator-x, with CPU hot(un)plug and system suspend.
Thanks for applying!
Thanks.
This is appears to be in keeping with the discussion between Magnus, yourself, myself and others in Brussels last month. Accordingly I have queued-up these changes.