2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00
linux-next/arch/powerpc/platforms/powernv
Benjamin Herrenschmidt 27f4488872 powerpc/powernv: Add OPAL takeover from PowerVM
On machines supporting the OPAL firmware version 1, the system
is initially booted under pHyp. We then use a special hypercall
to verify if OPAL is available and if it is, we then trigger
a "takeover" which disables pHyp and loads the OPAL runtime
firmware, giving control to the kernel in hypervisor mode.

This patch add the necessary code to detect that the OPAL takeover
capability is present when running under PowerVM (aka pHyp) and
perform said takeover to get hypervisor control of the processor.

To perform the takeover, we must first use RTAS (within Open
Firmware runtime environment) to start all processors & threads,
in order to give control to OPAL on all of them. We then call
the takeover hypercall on everybody, OPAL will re-enter the kernel
main entry point passing it a flat device-tree.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2011-09-20 16:09:47 +10:00
..
Kconfig powerpc: Add skeleton PowerNV platform 2011-09-20 15:53:25 +10:00
Makefile powerpc/powernv: Add OPAL takeover from PowerVM 2011-09-20 16:09:47 +10:00
opal-takeover.S powerpc/powernv: Add OPAL takeover from PowerVM 2011-09-20 16:09:47 +10:00
powernv.h powerpc: Add skeleton PowerNV platform 2011-09-20 15:53:25 +10:00
setup.c powerpc: Add skeleton PowerNV platform 2011-09-20 15:53:25 +10:00
smp.c powerpc/powernv: Add CPU hotplug support 2011-09-20 16:09:45 +10:00