linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Set the correct kernel taint on machine check errors.
@ 2015-06-15  3:25 Daniel Axtens
  2015-06-24  5:00 ` Michael Ellerman
  2015-07-07 10:38 ` Michael Ellerman
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Axtens @ 2015-06-15  3:25 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: mpe, benh, Daniel Axtens

This means the 'M' flag will work properly when the kernel prints a backtrace.

Signed-off-by: Daniel Axtens <dja@axtens.net>
---
 arch/powerpc/kernel/traps.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
index 6530f1b..37de90f 100644
--- a/arch/powerpc/kernel/traps.c
+++ b/arch/powerpc/kernel/traps.c
@@ -297,6 +297,8 @@ long machine_check_early(struct pt_regs *regs)
 
 	__this_cpu_inc(irq_stat.mce_exceptions);
 
+	add_taint(TAINT_MACHINE_CHECK, LOCKDEP_NOW_UNRELIABLE);
+
 	if (cur_cpu_spec && cur_cpu_spec->machine_check_early)
 		handled = cur_cpu_spec->machine_check_early(regs);
 	return handled;
-- 
2.1.4

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

end of thread, other threads:[~2015-07-07 10:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-15  3:25 [PATCH] powerpc: Set the correct kernel taint on machine check errors Daniel Axtens
2015-06-24  5:00 ` Michael Ellerman
2015-06-24  5:08   ` Daniel Axtens
2015-07-07 10:38 ` Michael Ellerman

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).