powerpc/powernv: Add poweroff (EPOW, DPO) events support for PowerNV platform
authorVipin K Parashar <vipin@linux.vnet.ibm.com>
Wed, 8 Jul 2015 11:06:01 +0000 (16:36 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2015 03:34:36 +0000 (13:34 +1000)
commit3b476aadbc1409fef6be85f601117f2c6a331faa
tree37dfbeb4a0780190a4f304f2f96bdbe2b72a3cad
parentf951e51003860705fc9fc663fbce90f8263a6804
powerpc/powernv: Add poweroff (EPOW, DPO) events support for PowerNV platform

This patch adds support for OPAL EPOW (Environmental and Power Warnings)
and DPO (Delayed Power Off) events for the PowerNV platform. These events
are generated on FSP (Flexible Service Processor) based systems. EPOW
events are generated due to various critical system conditions that
require system shutdown. A few examples of these conditions are high
ambient temperature or system running on UPS power with low UPS battery.
DPO event is generated in response to admin initiated system shutdown
request. Upon receipt of EPOW and DPO events the host kernel invokes
orderly_poweroff() for performing graceful system shutdown.

Signed-off-by: Vipin K Parashar <vipin@linux.vnet.ibm.com>
Acked-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal-api.h
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-power.c
arch/powerpc/platforms/powernv/opal-wrappers.S