[Skiboot] [PATCH v2 0/2] FSP EPOW events support in OPAL

Vipin K Parashar vipin at linux.vnet.ibm.com
Thu May 7 16:23:26 AEST 2015


This patchset adds support for FSP EPOW events in OPAL.
FSP/SPCN sends EPOW (Early Power Off Warning) notifications
for various conditions that need system shutdown. Below EPOW
conditions are covered by this patchset.
 * System running on UPS power
 * System running on UPS power with UPS battery low.
 * High ambient tempeature
 * Critical ambient temperature
 * High internal temperature
 * Critical internal temperature
Along with these events support for EPOW reset i.e. EPOW condition
return to normal state is also added. OPAL EPOW notifications are
sent to host for each of above cases.
	EPOW events have different timeout values associated with
them after which FSP/SPCN shuts down system automatically. These
values are exported by OPAL via device-tree properties under EPOW
device tree node. Host kernel should handle EPOW notifications from
OPAL and perform graceful system shutdown before the timeout value
associated with concerned EPOW event.
	EPOW events property device tree looks as below:

    epow
    ├── compatible
    ├── epow-classes
    ├── linux,phandle
    ├── name
    ├── phandle
    ├── power
    │   ├── linux,phandle
    │   ├── name
    │   ├── phandle
    │   ├── ups-low-timeout
    │   └── ups-timeout
    └── temp
        ├── crit-ambient-temp-timeout
        ├── crit-internal-temp-timeout
        ├── high-ambient-temp-timeout
        ├── high-internal-temp-timeout
        ├── linux,phandle
        ├── name
        └── phandle

Changes in v2:
 - Made some code changes to improve code quality.
 - Added a patch for exporting EPOW event timeout values as device-tree
   entries.

Vipin K Parashar (2):
  FSP/EPOW: Add support for FSP EPOW events in OPAL
  FSP/EPOW: Add device tree entries to export EPOW event timeouts

 hw/fsp/fsp-epow.c  | 414 +++++++++++++++++++++++++++++------------------------
 hw/fsp/fsp-epow.h  |  42 +++---
 include/opal-api.h |  82 +++++------
 3 files changed, 283 insertions(+), 255 deletions(-)

--
1.9.3



More information about the Skiboot mailing list