Commit 79872e35 authored by Anshuman Khandual's avatar Anshuman Khandual Committed by Michael Ellerman

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: default avatarAnshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent e9863e68
...@@ -89,6 +89,8 @@ static void handle_system_shutdown(char event_modifier) ...@@ -89,6 +89,8 @@ static void handle_system_shutdown(char event_modifier)
case EPOW_SHUTDOWN_ON_UPS: case EPOW_SHUTDOWN_ON_UPS:
pr_emerg("Loss of power reported by firmware, system is " pr_emerg("Loss of power reported by firmware, system is "
"running on UPS/battery"); "running on UPS/battery");
pr_emerg("Check RTAS error log for details");
orderly_poweroff(true);
break; break;
case EPOW_SHUTDOWN_LOSS_OF_CRITICAL_FUNCTIONS: case EPOW_SHUTDOWN_LOSS_OF_CRITICAL_FUNCTIONS:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment