Skip to content

Add smp support for Allwinner A20 and phy arch count timer

Fan Rong linux-arm-kernel lkml 1 version NAK

Status from this message: NAK - There's no binding document for this in mainline or this series.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 26 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/4Add smp support for Allwinner A20(sunxi 7i).arch/arm/mach-sunxi/Makefile arch/arm/mach-sunxi/headsmp.S arch/arm/mach-sunxi/platform.h +2 more+530 -03 replies
2/4Add cpuconfig nodes in dts for smp configure.arch/arm/boot/dts/sun7i-a20.dtsi+7 -21 reply
3/4Add physical count arch timer support for clocksource in ARMv7.arch/arm/include/asm/arch_timer.h drivers/clocksource/Kconfig drivers/clocksource/arm_arch_timer.c+28 -114 replies
4/4Add arch count timer node in dts for Allwinner A20(sunxi 7i).arch/arm/boot/dts/sun7i-a20.dtsi+9 -04 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] Add smp support for Allwinner A20 and phy arch count timer

The patchs add smp support for Allwinner A20. It add cpuregister node in dts forsmp configure. The patchs also add a options for phy count timer to replace vir count timer as ARM arch timer clocksource. About ARM arch timer: 1. Current kernel use vir count timer, vir count timer can be accessed in any cpu mode for kernel, but it need bootloader set vir count offset rigister zero at first. 2. Phy count timer can be accessed in most cpu mode for kernel except NS-PL1 mode when register CNTHCTL.PL1PCTEN is set to zero. To ensure to use phy count timer, bootloader should set register CNTHCTL.PL1PCTEN is 1 at first. At all, to ensure kernel can use arch timer, bootload should set some generic timer register(cntvoff or cnthctl) at first. the kernel should select which count timer by reading current kernel running mode.

Fan Rong (4):
Add smp support for Allwinner A20(sunxi 7i).
Add cpuconfig nodes in dts for smp configure.
Add physical count arch timer support for clocksource in ARMv7. Add arch count timer node in dts for Allwinner A20(sunxi 7i).

 arch/arm/boot/dts/sun7i-a20.dtsi     |   18 +-
 arch/arm/include/asm/arch_timer.h    |   11 ++
 arch/arm/mach-sunxi/Makefile         |    2 +
 arch/arm/mach-sunxi/headsmp.S        |   12 ++
 arch/arm/mach-sunxi/platform.h       |  346 ++++++++++++++++++++++++++++++++++
 arch/arm/mach-sunxi/platsmp.c        |  166 ++++++++++++++++
 arch/arm/mach-sunxi/sunxi.c          |    4 +
 drivers/clocksource/Kconfig          |    8 +
 drivers/clocksource/arm_arch_timer.c |   10 +-
 9 files changed, 574 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm/mach-sunxi/headsmp.S
 create mode 100644 arch/arm/mach-sunxi/platform.h
 create mode 100644 arch/arm/mach-sunxi/platsmp.c
Signature · 1 line
1.7.9.5