[Skiboot] [PATCH v3 0/7] Enable stop4 idle state
Akshay Adiga
akshay.adiga at linux.vnet.ibm.com
Wed Aug 23 18:47:55 AEST 2017
The following patch series enabled the infrastructure to support deeper
idle states like STOP4 on POWER9 platform.
When cpu enters stop4 or deeper state it losses few critical hypervisor
sprs. In the POWER9 platform stop-api provides interface for opal to call
into low level platform firmware/microcode to configure and setup various
actions on wakeup from deep idle state.
Some SPRs that have implicit value like HRMOR are directly set from
OPAL, while other are left to be configured from Linux using opal
calls.
p9 stop api is used to restore these hypervisor sprs with
correct values. Sprs like HRMOR is configured from skiboot,
where as LPCR, HID and MSR are configured by kernel. Kernel
uses opal_slw_set_reg() to configure these sprs.
Patch 1: p9_stop_api from hostboot code.
Patch 2: Fixes build erros caused due to mixed code and declaration
Patch 3: Add header file which provides glibc style endianness check
Patch 4: Enable opal_slw_set_reg() for power9
Patch 5: Configure HRMOR restore using stop api
Patch 6: Allows deeper stop states (like stop4) if homer address is set
Patch 7: Fix stop4 related flags that are exposed in device-tree for DD2
Changes from v1 :
* Added patch6, which adds stop4 to device-tree
Changes from v2 :
* Updated latest p9_stop_api code base from hostboot
* Removed "code under development" from commit log for p9_stop_api
* added Patch 2 , for a p9_stop_api build fix
* Remove stop4 support for power9 DD1, stop1 is the deepest stop
state in DD1.
* Modify stop4 related flags (for DD2 and further rev's)
Akshay Adiga (7):
SLW: Add support for p9_stop_api
libpore: Build fix for p9_stop_api
libpore: Add GLIBC style endianness detection
SLW: Add opal_slw_set_reg support for power9
SLW: Configure self-restore for HRMOR
SLW: Allow deep states if homer address is known
SLW: Removing timebase related flags for stop4
hw/slw.c | 108 +++-
include/p9_stop_api.H | 163 +++++
libpore/Makefile.inc | 2 +-
libpore/endian.h | 29 +
libpore/p9_cpu_reg_restore_instruction.H | 76 +++
libpore/p9_hcd_header_defs.H | 152 +++++
libpore/p9_hcd_memmap_base.H | 522 +++++++++++++++
libpore/p9_stop_api.C | 1028 ++++++++++++++++++++++++++++++
libpore/p9_stop_api.H | 163 +++++
libpore/p9_stop_data_struct.H | 149 +++++
libpore/p9_stop_util.C | 187 ++++++
libpore/p9_stop_util.H | 143 +++++
12 files changed, 2695 insertions(+), 27 deletions(-)
create mode 100644 include/p9_stop_api.H
create mode 100644 libpore/endian.h
create mode 100644 libpore/p9_cpu_reg_restore_instruction.H
create mode 100644 libpore/p9_hcd_header_defs.H
create mode 100644 libpore/p9_hcd_memmap_base.H
create mode 100644 libpore/p9_stop_api.C
create mode 100644 libpore/p9_stop_api.H
create mode 100644 libpore/p9_stop_data_struct.H
create mode 100644 libpore/p9_stop_util.C
create mode 100644 libpore/p9_stop_util.H
--
2.5.5
More information about the Skiboot
mailing list