diff options
author | Tony Luck <tony.luck@intel.com> | 2011-12-13 12:27:58 -0500 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2012-01-03 15:06:38 -0500 |
commit | 7329bbeb92740f35d64a8860ae7837ff4db27fe0 (patch) | |
tree | df4decab54463fd2dee4979f1aa38615f1ef2f3c /include/linux/mm.h | |
parent | cd42f4a3b2b1c4cbd997363dc57821953d73fd87 (diff) |
HWPOISON: Add code to handle "action required" errors.
Add new flag bit "MF_ACTION_REQUIRED" to be used by machine check
code to force a signal with si_code = BUS_MCEERR_AR in the case
where the error occurs in processor execution context. Pass the
flags argument along call chain:
memory_failure()
hwpoison_user_mappings()
kill_procs()
kill_proc()
Drop the "_ao" suffix from kill_procs_ao() and kill_proc_ao() since
they can now handle "action required" as well as "action optional" errors.
Acked-by: Borislav Petkov <bp@amd64.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index bcc523474724..bf169ca69812 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1606,6 +1606,7 @@ void vmemmap_populate_print_last(void); | |||
1606 | 1606 | ||
1607 | enum mf_flags { | 1607 | enum mf_flags { |
1608 | MF_COUNT_INCREASED = 1 << 0, | 1608 | MF_COUNT_INCREASED = 1 << 0, |
1609 | MF_ACTION_REQUIRED = 1 << 1, | ||
1609 | }; | 1610 | }; |
1610 | extern int memory_failure(unsigned long pfn, int trapno, int flags); | 1611 | extern int memory_failure(unsigned long pfn, int trapno, int flags); |
1611 | extern void memory_failure_queue(unsigned long pfn, int trapno, int flags); | 1612 | extern void memory_failure_queue(unsigned long pfn, int trapno, int flags); |