mbox series

[0/3] Improve exception handling

Message ID 20180202053410.16830-1-npiggin@gmail.com
Headers show
Series Improve exception handling | expand

Message

Nicholas Piggin Feb. 2, 2018, 5:34 a.m. UTC
This series improves OPAL exception reporting, particularly for machine
check exceptions. Although MCEs are currently always treated as fatal
while OPAL controls the exception vectors, they should not be unexpected
(e.g., in case of hardware failure), and should be reported as well as
possible.

Nicholas Piggin (3):
  core/utils: add snprintf_symbol
  core/init: manage MSR[ME] explicitly, always enable it
  core/exception: beautify exception handler, add MCE-involved registers

 asm/asm-offsets.c |  2 ++
 asm/head.S        | 33 +++++++++++++++++++++++++++++++++
 core/exceptions.c | 39 ++++++++++++++++++++++++++++++++++++---
 core/init.c       | 15 +++++++++++++++
 core/stack.c      | 17 ++++-------------
 core/utils.c      | 26 +++++++++++++++++++++++++-
 include/skiboot.h |  5 +++--
 include/stack.h   |  2 ++
 8 files changed, 120 insertions(+), 19 deletions(-)

Comments

Stewart Smith Feb. 9, 2018, 5:10 a.m. UTC | #1
Nicholas Piggin <npiggin@gmail.com> writes:
> This series improves OPAL exception reporting, particularly for machine
> check exceptions. Although MCEs are currently always treated as fatal
> while OPAL controls the exception vectors, they should not be unexpected
> (e.g., in case of hardware failure), and should be reported as well as
> possible.
>
> Nicholas Piggin (3):
>   core/utils: add snprintf_symbol
>   core/init: manage MSR[ME] explicitly, always enable it
>   core/exception: beautify exception handler, add MCE-involved
>   registers

I love it - makes things a lot clearer.

Series merged to master as of d5378d2a0d54793ee59cd460e465fd0471bdd703