rpi: Implement PSCI CPU_OFF
We simulate the PSCI CPU_OFF operation by reseting the core via RMR.
For secondaries, that already puts them in the holding pen waiting for a
"warm boot" request as part of PSCI CPU_ON. For the BSP, we have to add
logic to distinguish a regular boot from a CPU_OFF state, where, like the
secondaries, the BSP needs to wait foor a "warm boot" request as part
of CPU_ON.

Testing done:

- ACS suite now passes more tests (since it repeatedly
calls code on secondaries via CPU_ON).

- Linux testing including offlining/onlineing CPU0, e.g.
"echo 0 > /sys/devices/system/cpu/cpu0/online".

Change-Id: Id0ae11a0ee0721b20fa2578b54dadc72dcbd69e0
Link: https://developer.trustedfirmware.org/T686
Signed-off-by: Andrei Warkentin <andrey.warkentin@gmail.com>
[Andre: adapt to unified plat_helpers.S, smaller fixes]
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
1 parent af2a487 commit 2e5f84432dabd74cbcd045e5007e02c7d3b25a91
@Andrei Warkentin Andrei Warkentin authored on 12 Mar 2020
Andre Przywara committed on 1 Apr 2020
Showing 4 changed files
View
plat/rpi/common/aarch64/plat_helpers.S
View
plat/rpi/common/rpi3_pm.c
View
plat/rpi/rpi3/include/platform_def.h
View
plat/rpi/rpi4/include/platform_def.h