linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/4] Revisit MCE handling for UE Errors
@ 2017-09-12  4:38 Balbir Singh
  2017-09-12  4:38 ` [PATCH v1 1/4] powerpc/mce.c: Remove unused function get_mce_fault_addr() Balbir Singh
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Balbir Singh @ 2017-09-12  4:38 UTC (permalink / raw)
  To: mpe; +Cc: npiggin, mahesh, linuxppc-dev, Balbir Singh

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 the pfn for instruction UE errors (ierror).

The fourth 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.

Changelog v2:
	- address review comments from Nick and Mahesh
	(initialization of pfn and more comments on failure
	when addr_to_pfn() or anaylse_instr() fail)
	- Hookup ierrors to the framework as well
	(comments from Mahesh)

Balbir Singh (4):
  powerpc/mce.c: Remove unused function get_mce_fault_addr()
  powerpc/mce: Hookup derror (load/store) UE errors
  powerpc/mce: Hookup ierror (instruction) UE errors
  powerpc/mce: hookup memory_failure for UE errors

 arch/powerpc/include/asm/mce.h  |   4 +-
 arch/powerpc/kernel/mce.c       | 108 ++++++++++++++++++++++++----------------
 arch/powerpc/kernel/mce_power.c | 105 +++++++++++++++++++++++++++++++++++---
 3 files changed, 163 insertions(+), 54 deletions(-)

-- 
2.9.5

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-09-12  7:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-12  4:38 [PATCH v1 0/4] Revisit MCE handling for UE Errors Balbir Singh
2017-09-12  4:38 ` [PATCH v1 1/4] powerpc/mce.c: Remove unused function get_mce_fault_addr() Balbir Singh
2017-09-12  4:38 ` [PATCH v1 2/4] powerpc/mce: Hookup derror (load/store) UE errors Balbir Singh
2017-09-12  4:38 ` [PATCH v1 3/4] powerpc/mce: Hookup ierror (instruction) " Balbir Singh
2017-09-12  4:38 ` [PATCH v1 4/4] powerpc/mce: hookup memory_failure for " Balbir Singh
2017-09-12  5:03 ` [PATCH v1 0/4] Revisit MCE handling for UE Errors Nicholas Piggin
2017-09-12  7:11   ` Balbir Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).