public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/10] sunxi: Add basic PSCI support to enable SMP on the A80's first cluster
@ 2016-11-09 10:21 Chen-Yu Tsai
  2016-11-09 10:21 ` [U-Boot] [PATCH 01/10] ARM: PSCI: Set ARMV7_PSCI_NR_CPUS default to 8 for sun9i/A80 Chen-Yu Tsai
                   ` (10 more replies)
  0 siblings, 11 replies; 29+ messages in thread
From: Chen-Yu Tsai @ 2016-11-09 10:21 UTC (permalink / raw)
  To: u-boot

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

-- 
2.10.2

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2017-05-02 11:00 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-09 10:21 [U-Boot] [PATCH 00/10] sunxi: Add basic PSCI support to enable SMP on the A80's first cluster Chen-Yu Tsai
2016-11-09 10:21 ` [U-Boot] [PATCH 01/10] ARM: PSCI: Set ARMV7_PSCI_NR_CPUS default to 8 for sun9i/A80 Chen-Yu Tsai
2016-11-13 19:05   ` Hans de Goede
2016-11-09 10:21 ` [U-Boot] [PATCH 02/10] sunxi: Add CCI-400 and CPUCFG registers base address " Chen-Yu Tsai
2016-11-13 19:06   ` Hans de Goede
2016-11-09 10:21 ` [U-Boot] [PATCH 03/10] sunxi: Add base address of secure SRAM B " Chen-Yu Tsai
2016-11-13 19:06   ` Hans de Goede
2016-11-09 10:21 ` [U-Boot] [PATCH 04/10] sunxi: Use secure SRAM B for secure RAM " Chen-Yu Tsai
2016-11-13 19:06   ` Hans de Goede
2016-11-09 10:21 ` [U-Boot] [PATCH 05/10] sunxi: Add PRCM register definition " Chen-Yu Tsai
2016-11-13 19:07   ` Hans de Goede
2016-11-09 10:21 ` [U-Boot] [PATCH 06/10] sunxi: Add CPUCFG register definitions " Chen-Yu Tsai
2016-11-13 19:07   ` Hans de Goede
2016-11-09 10:21 ` [U-Boot] [PATCH 07/10] sunxi: Add support for TZPC on sun9i/A80 Chen-Yu Tsai
2016-11-13 19:07   ` Hans de Goede
2016-11-09 10:21 ` [U-Boot] [PATCH 08/10] sunxi: Add basic PSCI implementation for A80 Chen-Yu Tsai
2016-11-13 19:07   ` Hans de Goede
2016-11-09 10:21 ` [U-Boot] [PATCH 09/10] sunxi: Enable PSCI on sun9i/A80 Chen-Yu Tsai
2016-11-13 19:08   ` Hans de Goede
2017-04-03 12:13   ` Jagan Teki
2017-04-03 12:17     ` Chen-Yu Tsai
2016-11-09 10:21 ` [U-Boot] [PATCH 10/10] sunxi: Add PSCI core power off support for A80's first cluster Chen-Yu Tsai
2016-11-09 10:38 ` [U-Boot] [PATCH 00/10] sunxi: Add basic PSCI support to enable SMP on the " Hans de Goede
2016-11-09 10:54   ` Chen-Yu Tsai
2016-11-14 11:21   ` Chen-Yu Tsai
2017-01-25 10:40     ` Chen-Yu Tsai
2017-01-26 22:44       ` Rask Ingemann Lambertsen
     [not found]         ` <CAD6G_RQ4KSH2HpwQKzv7U_1e1K72XNXJ3esMt+nhrU7Z_Ybg=Q@mail.gmail.com>
2017-05-02 10:50           ` Jagan Teki
2017-05-02 11:00             ` Chen-Yu Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox