]> git.karo-electronics.de Git - karo-tx-linux.git/commit
HWPoison: add memory_failure_queue()
authorHuang Ying <ying.huang@intel.com>
Wed, 13 Jul 2011 05:14:27 +0000 (13:14 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 14 Jul 2011 03:40:04 +0000 (23:40 -0400)
commitb38ffa1cc1b367a1db5589335ca5b8c528e5c279
tree052c3f7e699745394a35063d2a58c4ef0995f3c5
parent40c454a7b8c7fab7a5fffb8713064ad811c9fc60
HWPoison: add memory_failure_queue()

memory_failure() is the entry point for HWPoison memory error
recovery.  It must be called in process context.  But commonly
hardware memory errors are notified via MCE or NMI, so some delayed
execution mechanism must be used.  In MCE handler, a work queue + ring
buffer mechanism is used.

In addition to MCE, now APEI (ACPI Platform Error Interface) GHES
(Generic Hardware Error Source) can be used to report memory errors
too.  To add support to APEI GHES memory recovery, a mechanism similar
to that of MCE is implemented.  memory_failure_queue() is the new
entry point that can be called in IRQ context.  The next step is to
make MCE handler uses this interface too.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
include/linux/mm.h
mm/memory-failure.c