[PATCH v2 3/3] powernv: Fix MCE handler to avoid trashing CR0/CR1 registers.

Stewart Smith stewart at linux.vnet.ibm.com
Thu Aug 4 14:14:39 AEST 2016

Mahesh J Salgaonkar <mahesh at linux.vnet.ibm.com> writes:
> From: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com>
> The current implementation of MCE early handling modifies CR0/1 registers
> without saving its old values. Fix this by moving early check for
> powersaving mode to machine_check_handle_early().

>From (internal bug report) it seems as though in a test where one
injects continuous SLB Multi Hit errors, this bug could lead to rebooting
"due to to Platform error" rather than continuing to recover
successfully. It might be a good idea to mention that in commit message

Also, should this go to stable?

Stewart Smith
OPAL Architect, IBM.

More information about the Linuxppc-dev mailing list