linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Poweroff (EPOW, DPO) events support for PowerNV platform
@ 2015-05-07  9:30 Vipin K Parashar
  2015-05-07  9:30 ` [PATCH v2 1/2] powerpc/powernv: Add poweroff " Vipin K Parashar
  2015-05-07  9:30 ` [PATCH v2 2/2] powerpc/powernv: Extract EPOW events timeout values from OPAL device tree Vipin K Parashar
  0 siblings, 2 replies; 12+ messages in thread
From: Vipin K Parashar @ 2015-05-07  9:30 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: stewart, Vipin K Parashar, joel

This patchset adds support for FSP EPOW (Early Power Off Warning) and
DPO (Delayed Power Off) events support for PowerNV platform.  EPOW events
are generated by SPCN/FSP due to various critical system conditions that
need system shutdown. 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.
	This patchset enables host kernel on PowerNV platform to handle OPAL
notifications for these events and initiate system poweroff. Since EPOW
notifications are sent in advance of impending shutdown event and thus
functionality is also added to wait for EPOW condition to return to
normal. EPOW events timeout values are available via OPAL exported device
tree values under EPOW node.
	Host kernel allows MAX_POWEROFF_SYS_TIME (600 seconds) as system
poweroff time (time for host + guests shutdown) and waits for remaining
time for EPOW condition to return to normal. If EPOW condition doesn't
return to normal in calculated time it proceeds with graceful system
shutdown. For EPOW events with smaller timeouts values than
MAX_POWEROFF_SYS_TIME it proceeds with system shutdown without any wait
for EPOW condition to return to normal.
	System admin can also add systemd service shutdown scripts to
perform any specific actions like graceful guest shutdown upon system
poweroff. libvirt-guests is systemd service available on recent distros
for management of guests at system stat/shutdown time.

Changes in v2:
 - Made code changes to improve code as per previous review comments.
 - Added patch to obtain EPOW event timeout values from OPAL device-tree.

Vipin K Parashar (2):
  powerpc/powernv: Add poweroff (EPOW, DPO) events support for PowerNV
    platform
  powerpc/powernv: Extract EPOW events timeout values from OPAL device
    tree

 arch/powerpc/include/asm/opal-api.h            |  30 ++
 arch/powerpc/include/asm/opal.h                |   3 +-
 arch/powerpc/platforms/powernv/opal-power.c    | 440 +++++++++++++++++++++++--
 arch/powerpc/platforms/powernv/opal-wrappers.S |   1 +
 4 files changed, 452 insertions(+), 22 deletions(-)

--
1.9.3

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-05-13 20:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-07  9:30 [PATCH v2 0/2] Poweroff (EPOW, DPO) events support for PowerNV platform Vipin K Parashar
2015-05-07  9:30 ` [PATCH v2 1/2] powerpc/powernv: Add poweroff " Vipin K Parashar
2015-05-08  1:26   ` Joel Stanley
2015-05-11  7:01     ` Vipin K Parashar
2015-05-08  7:37   ` trigg
2015-05-11 22:31     ` Stewart Smith
     [not found]       ` <CAPfuKjKtSHB3Q03vGD9XDnk2yFV31mC8wdJGr3q8XYZfvSx3LA@mail.gmail.com>
2015-05-12 17:09         ` Triggering
2015-05-11  6:49   ` Michael Ellerman
2015-05-11  9:01     ` Vipin K Parashar
2015-05-11 10:47       ` Vipin K Parashar
2015-05-13 20:17     ` Vipin K Parashar
2015-05-07  9:30 ` [PATCH v2 2/2] powerpc/powernv: Extract EPOW events timeout values from OPAL device tree Vipin K Parashar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).