Skip to content

sunxi: Add basic PSCI support to enable SMP on the A80's first cluster

Chen-Yu Tsai u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ARM: PSCI: Set ARMV7_PSCI_NR_CPUS default to 8 for sun9i/A80arch/arm/cpu/armv7/Kconfig+1 -01 reply
2/10sunxi: Add CCI-400 and CPUCFG registers base address for sun9i/A80arch/arm/include/asm/arch-sunxi/cpu_sun9i.h+3 -01 reply
3/10sunxi: Add base address of secure SRAM B for sun9i/A80arch/arm/include/asm/arch-sunxi/cpu_sun9i.h+1 -01 reply
4/10sunxi: Use secure SRAM B for secure RAM for sun9i/A80include/configs/sun9i.h+4 -01 reply
5/10sunxi: Add PRCM register definition for sun9i/A80arch/arm/include/asm/arch-sunxi/prcm_sun9i.h+55 -01 reply
6/10sunxi: Add CPUCFG register definitions for sun9i/A80arch/arm/include/asm/arch-sunxi/cpucfg_sun9i.h+51 -01 reply
7/10sunxi: Add support for TZPC on sun9i/A80arch/arm/cpu/armv7/sunxi/Makefile arch/arm/cpu/armv7/sunxi/tzpc.c arch/arm/include/asm/arch-sunxi/cpu_sun9i.h +2 more+14 -11 reply
8/10sunxi: Add basic PSCI implementation for A80arch/arm/cpu/armv7/sunxi/Makefile arch/arm/cpu/armv7/sunxi/psci-mcpm.c+238 -01 reply
9/10sunxi: Enable PSCI on sun9i/A80board/sunxi/Kconfig+4 -02 replies
9/10sunxi: Enable PSCI on sun9i/A80+0 -00 replies
10/10sunxi: Add PSCI core power off support for A80's first clusterarch/arm/cpu/armv7/sunxi/psci-mcpm.c+88 -00 replies

Reviews trailers per patch

10 of 11 patches have a Reviewed-by or Acked-by.

PatchHans de Goede
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
9/10R-b
10/10

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

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/10] sunxi: Add basic PSCI support to enable SMP on the A80's first cluster

Hi everyone,

This series adds basic PSCI support for the A80 to enable SMP on the first cluster. This at least allows people to use more than one core. The term "basic" is used because the series does not add support for multi-cluster cache and power management.

The PSCI code is based on existing code for all the single cluster SoCs, and the kernel patches for MCPM SMP I did some time ago.

Unfortunately only SMP works at this time. The last patch does not actually work. While the system is indeed booted non-secure, tested by trying to write to secure SRAM and the results not sticking, reads from the GIC CPU interface shows that it's still returning the secure copy of registers, and since we use a secure monitor FIQ to do core power down, the FIQ gets passed to the kernel. The patch is included so people with in-depth ARM knowledge could probably help work out what is wrong.

Regards
ChenYu

Chen-Yu Tsai (10):
ARM: PSCI: Set ARMV7_PSCI_NR_CPUS default to 8 for sun9i/A80
sunxi: Add CCI-400 and CPUCFG registers base address for sun9i/A80
sunxi: Add base address of secure SRAM B for sun9i/A80
sunxi: Use secure SRAM B for secure RAM for sun9i/A80
sunxi: Add PRCM register definition for sun9i/A80
sunxi: Add CPUCFG register definitions for sun9i/A80
sunxi: Add support for TZPC on sun9i/A80
sunxi: Add basic PSCI implementation for A80
sunxi: Enable PSCI on sun9i/A80
sunxi: Add PSCI core power off support for A80's first cluster

 arch/arm/cpu/armv7/Kconfig                     |   1 +
 arch/arm/cpu/armv7/sunxi/Makefile              |   5 +
 arch/arm/cpu/armv7/sunxi/psci-mcpm.c           | 322 +++++++++++++++++++++++++
 arch/arm/cpu/armv7/sunxi/tzpc.c                |   6 +
 arch/arm/include/asm/arch-sunxi/cpu_sun9i.h    |   5 +
 arch/arm/include/asm/arch-sunxi/cpucfg_sun9i.h |  51 ++++
 arch/arm/include/asm/arch-sunxi/prcm_sun9i.h   |  55 +++++
 arch/arm/include/asm/arch-sunxi/tzpc.h         |   4 +
 arch/arm/mach-sunxi/board.c                    |   3 +-
 board/sunxi/Kconfig                            |   4 +
 include/configs/sun9i.h                        |   4 +
 11 files changed, 459 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/cpu/armv7/sunxi/psci-mcpm.c
 create mode 100644 arch/arm/include/asm/arch-sunxi/cpucfg_sun9i.h
 create mode 100644 arch/arm/include/asm/arch-sunxi/prcm_sun9i.h
Signature · 1 line
2.10.2