Skip to content

SMP support for CNS3xxx + some SMP SCU cleanups

Anton Vorontsov linux-arm-kernel linux-omap linux-samsung-soc lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 16 repliesIn review
  2. v14 patches 0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ARM: SCU: Add common routines for secondary CPU bootuparch/arm/include/asm/smp_scu.h arch/arm/kernel/Makefile arch/arm/kernel/smp_scu_boot.c +1 more+199 -114 replies
2/8ARM: cns3xxx: Add support for SMParch/arm/Kconfig arch/arm/mach-cns3xxx/Kconfig arch/arm/mach-cns3xxx/Makefile +2 more+100 -11 reply
3/8ARM: VExpress: Switch to generic SCU routinesarch/arm/mach-vexpress/Makefile arch/arm/mach-vexpress/headsmp.S arch/arm/mach-vexpress/platsmp.c+15 -1761 reply
4/8ARM: RealView: Switch to generic SCU routinesarch/arm/mach-realview/Makefile arch/arm/mach-realview/headsmp.S arch/arm/mach-realview/hotplug.c +1 more+14 -1930 replies
5/8ARM: S5PV310: Switch to generic SCU routinesarch/arm/mach-s5pv310/Makefile arch/arm/mach-s5pv310/headsmp.S arch/arm/mach-s5pv310/hotplug.c +1 more+9 -1640 replies
6/8ARM: ux500: Switch to generic SCU routinesarch/arm/mach-ux500/Makefile arch/arm/mach-ux500/headsmp.S arch/arm/mach-ux500/hotplug.c +2 more+10 -1530 replies
7/8ARM: tegra: Switch to generic SCU routinesarch/arm/mach-tegra/platsmp.c+2 -340 replies
8/8ARM: OMAP2: Switch to generic SCU routinesarch/arm/mach-omap2/omap-smp.c+3 -610 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/8] SMP support for CNS3xxx + some SMP SCU cleanups

Hello everyone,

This is a reincarnation of my old series that was posted some time ago, i.e. http://www.spinics.net/lists/arm-kernel/msg94291.html

The main change is that boot protocol routines were split into its own file, i.e. smp_scu_boot.c. And now there are all platforms converted to the common SCU routines (where possible).

Russell suggested to get rid of the holding pen thing, I believe this is doable, but for now I don't want to change code behaviour. Just consolidate it as much as possible.

For convenience, the patches are available in GIT repository (based on Russell's devel tree):

git://git.infradead.org/users/cbou/linux-cns3xxx.git smp

Diffstat looks quite good, I think. Especially, considering that the series contains SMP addition for a platform, :-)

 arch/arm/Kconfig                                   |    2 +-
 arch/arm/include/asm/smp_scu.h                     |    9 +
 arch/arm/kernel/Makefile                           |    2 +-
 arch/arm/kernel/smp_scu_boot.c                     |  149 ++++++++++++++++++
 .../headsmp.S => kernel/smp_scu_head.S}            |   11 +-
 arch/arm/mach-cns3xxx/Kconfig                      |    1 +
 arch/arm/mach-cns3xxx/Makefile                     |    1 +
 arch/arm/mach-cns3xxx/include/mach/smp.h           |   28 ++++
 arch/arm/mach-cns3xxx/platsmp.c                    |   69 +++++++++
 arch/arm/mach-omap2/omap-smp.c                     |   64 +--------
 arch/arm/mach-realview/Makefile                    |    2 +-
 arch/arm/mach-realview/hotplug.c                   |    5 +-
 arch/arm/mach-realview/platsmp.c                   |  161 ++------------------
 arch/arm/mach-s5pv310/Makefile                     |    2 +-
 arch/arm/mach-s5pv310/headsmp.S                    |   41 -----
 arch/arm/mach-s5pv310/hotplug.c                    |    5 +-
 arch/arm/mach-s5pv310/platsmp.c                    |  125 +---------------
 arch/arm/mach-tegra/platsmp.c                      |   36 +----
 arch/arm/mach-ux500/Makefile                       |    2 +-
 arch/arm/mach-ux500/headsmp.S                      |   38 -----
 arch/arm/mach-ux500/hotplug.c                      |    5 +-
 arch/arm/mach-ux500/include/mach/smp.h             |    3 -
 arch/arm/mach-ux500/platsmp.c                      |  115 +-------------
 arch/arm/mach-vexpress/Makefile                    |    2 +-
 arch/arm/mach-vexpress/headsmp.S                   |   39 -----
 arch/arm/mach-vexpress/platsmp.c                   |  150 ++-----------------
 26 files changed, 318 insertions(+), 749 deletions(-)
 create mode 100644 arch/arm/kernel/smp_scu_boot.c
 rename arch/arm/{mach-realview/headsmp.S => kernel/smp_scu_head.S} (81%)
 create mode 100644 arch/arm/mach-cns3xxx/include/mach/smp.h
 create mode 100644 arch/arm/mach-cns3xxx/platsmp.c
 delete mode 100644 arch/arm/mach-s5pv310/headsmp.S
 delete mode 100644 arch/arm/mach-ux500/headsmp.S
 delete mode 100644 arch/arm/mach-vexpress/headsmp.S