powerpc/powernv: Introduce FW_FEATURE_ULTRAVISOR
authorClaudio Carvalho <cclaudio@linux.ibm.com>
Thu, 22 Aug 2019 03:48:34 +0000 (00:48 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 29 Aug 2019 23:40:15 +0000 (09:40 +1000)
commitbb04ffe85eebebd64d5e673a9434d968e80f3aa1
treef0375d18e4466a0af554ed7a62db72b7cd3c2226
parenta49dddbdb0cca1d00fc9251e543a0aac09a6a65b
powerpc/powernv: Introduce FW_FEATURE_ULTRAVISOR

In PEF enabled systems, some of the resources which were previously
hypervisor privileged are now ultravisor privileged and controlled by
the ultravisor firmware.

This adds FW_FEATURE_ULTRAVISOR to indicate if PEF is enabled.

The host kernel can use FW_FEATURE_ULTRAVISOR, for instance, to skip
accessing resources (e.g. PTCR and LDBAR) in case PEF is enabled.

Signed-off-by: Claudio Carvalho <cclaudio@linux.ibm.com>
[ andmike: Device node name to "ibm,ultravisor" ]
Signed-off-by: Michael Anderson <andmike@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190822034838.27876-4-cclaudio@linux.ibm.com
arch/powerpc/include/asm/firmware.h
arch/powerpc/include/asm/ultravisor.h [new file with mode: 0644]
arch/powerpc/kernel/prom.c
arch/powerpc/platforms/powernv/Makefile
arch/powerpc/platforms/powernv/ultravisor.c [new file with mode: 0644]