Skip to content

RFC Revisit MCE handling for UE errors

Balbir Singh linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3powerpc/mce.c: Remove unused function get_mce_fault_addr()arch/powerpc/include/asm/mce.h arch/powerpc/kernel/mce.c+0 -410 replies
2/3powerpc/mce: Extract physical_address for UE errorsarch/powerpc/include/asm/mce.h arch/powerpc/kernel/mce.c arch/powerpc/kernel/mce_power.c+61 -75 replies
3/3powerpc/mce: hookup memory_failure for UE errorsarch/powerpc/kernel/mce.c+59 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [rfc 0/3] Revisit MCE handling for UE errors

This patch series is designed to hook up memory_failure on UE errors, this is specially helpful for user_mode UE errors.

The first patch is a cleanup patch, it removes dead code. I could not find any users of get_mce_fault_addr(). The second patch walks kernel/user mode page tables in real mode to extract the effective address of the instruction that caused the UE error and the effective address it was trying to access (for load/store).
The third patch hooks up memory_failure to the MCE patch.

TODO:
Log the address in NVRAM, so that we can recover from bad pages at boot and keep the blacklist persistent.

Balbir Singh (3):
powerpc/mce.c: Remove unused function get_mce_fault_addr() powerpc/mce: Extract physical_address for UE errors powerpc/mce: hookup memory_failure for UE errors

 arch/powerpc/include/asm/mce.h  |   4 +-
 arch/powerpc/kernel/mce.c       | 107 ++++++++++++++++++++++++----------------
 arch/powerpc/kernel/mce_power.c |  60 ++++++++++++++++++++--
 3 files changed, 120 insertions(+), 51 deletions(-)
Signature · 1 line
2.9.5