Skip to content

ARM: shmobile: APMU DT support via SMP Enable method V3

Magnus Damm linux-devicetree linux-sh 3 versions – In review

Get series with b4
b4 am 20150917063240.26016.93772.sendpatchset@little-apple

Versions newest first · linked by author and title

  1. v3 Latest8 of 9 patches 3 repliesIn review
  2. v26 of 7 patches 10 repliesSuperseded
  3. v14 patches 2 repliesSuperseded

8 of 9 patches are in this archive. The cover letter announces 9.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9devicetree: bindings: Renesas APMU and SMP Enable methodDocumentation/devicetree/bindings/arm/cpus.txt Documentation/devicetree/bindings/power/renesas,apmu.txt+32 -00 replies
2/9ARM: shmobile: Add APMU DT support via Enable methodarch/arm/mach-shmobile/platsmp-apmu.c+88 -42 replies
3/9ARM: shmobile: Add APMU nodes to r8a7793 DTSIarch/arm/boot/dts/r8a7793.dtsi+14 -00 replies
4/9ARM: shmobile: r8a7793 boot address updatearch/arm/mach-shmobile/pm-rcar-gen2.c+4 -10 replies
5/9ARM: shmobile: Add APMU nodes to r8a7790 DTSIarch/arm/boot/dts/r8a7790.dtsi+13 -00 replies
6/9ARM: shmobile: Add APMU nodes to r8a7791 DTSIarch/arm/boot/dts/r8a7791.dtsi+7 -00 replies
7/9ARM: shmobile: Add function to prioritize DT SMParch/arm/mach-shmobile/common.h arch/arm/mach-shmobile/platsmp.c+8 -00 replies
8/9ARM: shmobile: Prioritize r8a7790 DT APMU supportarch/arm/mach-shmobile/setup-r8a7790.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/09] ARM: shmobile: APMU DT support via SMP Enable method V3

ARM: shmobile: APMU DT support via SMP Enable method V3

[PATCH v3 01/09] devicetree: bindings: Renesas APMU and SMP Enable method [PATCH v3 02/09] ARM: shmobile: Add APMU DT support via Enable method [PATCH v3 03/09] ARM: shmobile: Add APMU nodes to r8a7793 DTSI [PATCH v3 04/09] ARM: shmobile: r8a7793 boot address update [PATCH v3 05/09] ARM: shmobile: Add APMU nodes to r8a7790 DTSI [PATCH v3 06/09] ARM: shmobile: Add APMU nodes to r8a7791 DTSI [PATCH v3 07/09] ARM: shmobile: Add function to prioritize DT SMP [PATCH v3 08/09] ARM: shmobile: Prioritize r8a7790 DT APMU support [PATCH v3 09/09] ARM: shmobile: Prioritize r8a7791 DT APMU support

These patches add DT support for the APMU hardware commonly found in Renesas R-Car Gen2 SoCs. Without these patches the APMU gets configured through data expressed in C, and with this series applied it is possible to describe the APMU configuration in DT and let the enable method point out that the APMU should be used.

Patch 1 and 2 are Documenting and adding DT support to the APMU driver together with enabling use of the enable-method way to describe that the APMU hardware is needed for SMP operation.

Patch 3 and 4 add r8a7793 SMP support using this the new APMU DT interface.

Patch 5 and 6 are related to r8a7790/r8a7791 support that get a DTSI update to describe the APMU hardware. To avoid breaking support for older DTBs out in the wild these patches keep the older existing C code APMU configuration as-is. Patch 7-9 make sure that during run-time, if the APMU is installed via the DT enable-method then it will not be overriden by older non-DT configuration.

I suggest making APMU DT configuration mandatory for SMP operation on newer SoCs and that we keep the old APMU support code in place for a good number of kernel releases or until we can identify a couple of major reasons good enough to force a DTB update on the end users.

In the future r8a7794 support may be added by using code similar to patch 3 and 4 - without any C-based SMP code and fallback.

---

Written against renesas-drivers-2015-09-15-v4.3-rc1

 Documentation/devicetree/bindings/arm/cpus.txt           |    1 
 Documentation/devicetree/bindings/power/renesas,apmu.txt |   31 ++++
 arch/arm/boot/dts/r8a7790.dtsi                           |   13 +
 arch/arm/boot/dts/r8a7791.dtsi                           |    7 +
 arch/arm/boot/dts/r8a7793.dtsi                           |   14 ++
 arch/arm/mach-shmobile/common.h                          |    1 
 arch/arm/mach-shmobile/platsmp-apmu.c                    |   92 +++++++++++++-
 arch/arm/mach-shmobile/platsmp.c                         |    7 +
 arch/arm/mach-shmobile/pm-rcar-gen2.c                    |    5 
 arch/arm/mach-shmobile/setup-r8a7790.c                   |    1 
 arch/arm/mach-shmobile/setup-r8a7791.c                   |    1 
 11 files changed, 168 insertions(+), 5 deletions(-)