Skip to content

SMP support for Broadcom NSP

Kapil Hali linux-arm-kernel linux-devicetree lkml 7 versions – Applied

Status from this message: Applied to devicetree/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 7 repliesApplied
  2. v55 patches 4 repliesSuperseded
  3. v45 patches 14 repliesApplied
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v34 patches16 repliesSuperseded
v24 patches7 repliesSuperseded
v1 posting 2/24 patches8 repliesSuperseded
v1 posting 1/23 patches10 repliesSuperseded

Changes in v6 from the cover letter

* Updated 'enable-method' and 'secondary-boot-reg' device tree property for Kona and NSP in DT and documentation file.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/5dt-bindings: add SMP enable-method for Broadcom NSPDocumentation/devicetree/bindings/arm/bcm/brcm,nsp-cpu-method.txt Documentation/devicetree/bindings/arm/cpus.txt+40 -02 replies
2/5ARM: BCM: Clean up SMP support for Broadcom KonaDocumentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method.txt arch/arm/boot/dts/bcm11351.dtsi arch/arm/boot/dts/bcm21664.dtsi +1 more+64 -382 replies
3/5ARM: dts: Add SMP support for Broadcom NSParch/arm/boot/dts/bcm-nsp.dtsi+21 -121 reply
4/5ARM: BCM: Add SMP support for Broadcom NSParch/arm/mach-bcm/Kconfig arch/arm/mach-bcm/Makefile arch/arm/mach-bcm/platsmp.c+71 -31 reply
5/5ARM: BCM: Add SMP support for Broadcom 4708arch/arm/boot/dts/bcm4708.dtsi arch/arm/mach-bcm/Kconfig arch/arm/mach-bcm/Makefile+6 -11 reply

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchHauke MehrtensRob Herring
1/5A-b
2/5A-b
3/5
4/5
5/5A-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/5] SMP support for Broadcom NSP

Changes in V6:
* Updated 'enable-method' and 'secondary-boot-reg' device tree property for Kona and NSP in DT and documentation file.

Changes in v5:
* Made 'enable-method' for SMP per 'cpu' core instead of 'cpus' node, in the DT files for BCM NSP and BCM4708.

Change in v4:
* Cleaned up kona_smp.c and associated DT file.
* Corrected documentation for DT bindings.
* Corrected secondary-boot-reg entry for bcm4708 DT file.

Change in v3:
* Fixed patch subject from RESEND PATCH to PATCH
* Deleted arch/arm/mach-bcm/bcm_nsp.h file
* Removed inclusion of header file bcm_nsp.h in platsmp.c
* Removed unused variable 'timeout' in nsp_boot_secondary()

Changes in v2:
Removed the pen_holding method of SMP bringup for NSP SoC and replaced it with simple wakeup of secondary core using ARM IPI.

This series adds SMP support for Broadcom's Northstar Plus SoC.

There are similar SMP enablement methods for many ARMv7 bsed SoCs. BCM NSP SoC, has a typical such mechanism - after power-on, the secondary core is held in a standby state, primary core provides a startup address for the secondary core and wakes it up. Booting of the secondary core is serialized using pen_release global variable.

The startup address is programmed at a special register location which is defined in the device tree using a "secondary-boot-reg" property in a node whose "enable-method" property matches.

The first patch adds cpu-enable-method in the device tree bindings documentation. It also updates ARM CPU device tree documentation with Broadcom Northstar Plus CPU details.

The second patch adds SMP support to the BCM NSP device tree file.

The third patch, enables SMP on BCM NSP. It also consolidates common SMP handling between BCM NSP and BCM Kona.

The final patch, enables SMP on BCM 4708 and this patch is pulled in from Jon Mason's patch from the mailing list.

This patch series is constructed based on Linux v4.4-rc1.

The source code is available at GITHUB:
https://github.com/Broadcom/cygnus-linux/tree/nsp-smp-v2

Jon Mason (1):
ARM: BCM: Add SMP support for Broadcom 4708

Kapil Hali (4):
dt-bindings: add SMP enable-method for Broadcom NSP
ARM: BCM: Clean up SMP support for Broadcom Kona
ARM: dts: Add SMP support for Broadcom NSP
ARM: BCM: Add SMP support for Broadcom NSP

 .../bindings/arm/bcm/brcm,bcm11351-cpu-method.txt  |  12 +-
 .../bindings/arm/bcm/brcm,nsp-cpu-method.txt       |  39 ++++++
 Documentation/devicetree/bindings/arm/cpus.txt     |   1 +
 arch/arm/boot/dts/bcm-nsp.dtsi                     |  33 +++--
 arch/arm/boot/dts/bcm11351.dtsi                    |   4 +-
 arch/arm/boot/dts/bcm21664.dtsi                    |   4 +-
 arch/arm/boot/dts/bcm4708.dtsi                     |   3 +-
 arch/arm/mach-bcm/Kconfig                          |   3 +
 arch/arm/mach-bcm/Makefile                         |  11 +-
 arch/arm/mach-bcm/{kona_smp.c => platsmp.c}        | 144 +++++++++++++++++----
 10 files changed, 201 insertions(+), 53 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,nsp-cpu-method.txt
 rename arch/arm/mach-bcm/{kona_smp.c => platsmp.c} (63%)
Signature · 1 line
2.1.0