Skip to content

Commit 79872e3

Browse files
Anshuman Khandualmpe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent e9863e6 commit 79872e3

File tree

1 file changed

+2
-0
lines changed
  • arch/powerpc/platforms/pseries

1 file changed

+2
-0
lines changed

arch/powerpc/platforms/pseries/ras.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ static void handle_system_shutdown(char event_modifier)
8989
case EPOW_SHUTDOWN_ON_UPS:
9090
pr_emerg("Loss of power reported by firmware, system is "
9191
"running on UPS/battery");
92+
pr_emerg("Check RTAS error log for details");
93+
orderly_poweroff(true);
9294
break;
9395

9496
case EPOW_SHUTDOWN_LOSS_OF_CRITICAL_FUNCTIONS:

0 commit comments

Comments
 (0)