powerpc/pseries: All events of EPOW_SYSTEM_SHUTDOWN must initiate shutdown
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Tue, 21 Oct 2014 08:11:29 +0000 (13:41 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 23 Jan 2015 00:17:30 +0000 (11:17 +1100)
commit79872e35469b6db1c5243abded7b24367bd0a353
tree9fd93820a96f32873894d151096c8927dadade15
parente9863e687d87855900bd7cd96b51c018172467e1
powerpc/pseries: All events of EPOW_SYSTEM_SHUTDOWN must initiate shutdown

The current handling of EPOW_SHUTDOWN_ON_UPS event does not shutdown the
system after logging the message. All the events of EPOW_SYSTEM_SHUTDOWN
action code (EPOW_SHUTDOWN_ON_UPS is a part of it) must initiate system
shutdown as per the SPAPR spec. If the LPAR does not shutdown after
receiving this rtas based event, it will expose itself to a forced
abrupt shutdown initiated by the platform firmware. This patch fixes the
situation.

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/ras.c