diff options
author | Anshuman Khandual <khandual@linux.vnet.ibm.com> | 2014-07-24 17:14:15 +0530 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-30 10:55:58 +1000 |
commit | a02875504d6c182ec27fd29638f0451bfa13b969 (patch) | |
tree | c1ac7a7fa3c1b7b6da0259911128d8e11bb2b747 /platforms | |
parent | 7d20aac37062d93e15a96008158e51b9bbb34684 (diff) | |
download | skiboot-a02875504d6c182ec27fd29638f0451bfa13b969.zip skiboot-a02875504d6c182ec27fd29638f0451bfa13b969.tar.gz skiboot-a02875504d6c182ec27fd29638f0451bfa13b969.tar.bz2 |
epow: Enable Environment and Power Warning support in FSP machines
EPOW informs about the environmental and power situation regarding the system, so
thet corrective action can be taken if required. Sapphire interacts in two distinct
ways with respect to EPOW events with FSP. FSP sends notification regarding changes
in system-panel status (classified as normal ,extended_1, extended_2 depending on
information contained). These intimations carry details regarding the prevailing EPOW
situation which triggered the notification in the first place. Sapphire can also query
about these system-panel status synchronously with FSP, independent of these explicit
notifications.
This patch enables processing of these explicit FSP notifications related to EPOW events
and map them to generic OPAL EPOW events which in turn get communicated to the host above.
Host communication has been implemented with OPAL message event interface with OPAL_MSG_EPOW
class messages. Host gets notified about the presence of valid EPOW status in the system
and subsequently calls for the complete EPOW system status through an exclussive OPAL calls
with the token OPAL_GET_EPOW_STATUS. This delivers the entire array of system EPOW status which
can then be processed in the host kernel to be forwarded up the stack.
Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/ibm-fsp/common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platforms/ibm-fsp/common.c b/platforms/ibm-fsp/common.c index 6d5ee17..2c268eb 100644 --- a/platforms/ibm-fsp/common.c +++ b/platforms/ibm-fsp/common.c @@ -139,6 +139,10 @@ void ibm_fsp_init(void) op_display(OP_LOG, OP_MOD_INIT, 0x0009); fsp_code_update_init(); + /* EPOW */ + op_display(OP_LOG, OP_MOD_INIT, 0x000A); + fsp_epow_init(); + /* Setup console */ if (fsp_present()) fsp_console_add_nodes(); |