* [PATCH] x86/MCE: don't let EDAC bypass the handle from MCE
@ 2010-11-25 8:46 Chen Gong
2010-11-25 9:41 ` Andi Kleen
0 siblings, 1 reply; 2+ messages in thread
From: Chen Gong @ 2010-11-25 8:46 UTC (permalink / raw)
To: x86; +Cc: hpa, ak, linux-kernel, Chen Gong
currently EDAC bypass userspace handler intentionally if it can
deal with it, but this kind of operation will confuse users.
Some errors such as memory errors will be decoded by EDAC but
userspace handler (such as mcelog) knows nothing about it. At
least the kernel should give userspace a chance to know what
happens.
Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
---
arch/x86/kernel/cpu/mcheck/mce.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 7a35b72..78eba57 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -169,14 +169,7 @@ void mce_log(struct mce *mce)
for (;;) {
entry = rcu_dereference_check_mce(mcelog.next);
for (;;) {
- /*
- * If edac_mce is enabled, it will check the error type
- * and will process it, if it is a known error.
- * Otherwise, the error will be sent through mcelog
- * interface
- */
- if (edac_mce_parse(mce))
- return;
+ edac_mce_parse(mce);
/*
* When the buffer fills up discard new entries.
--
1.7.3.1.120.g38a18
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] x86/MCE: don't let EDAC bypass the handle from MCE
2010-11-25 8:46 [PATCH] x86/MCE: don't let EDAC bypass the handle from MCE Chen Gong
@ 2010-11-25 9:41 ` Andi Kleen
0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2010-11-25 9:41 UTC (permalink / raw)
To: Chen Gong; +Cc: x86, hpa, linux-kernel
> entry = rcu_dereference_check_mce(mcelog.next);
> for (;;) {
> - /*
> - * If edac_mce is enabled, it will check the error type
> - * and will process it, if it is a known error.
> - * Otherwise, the error will be sent through mcelog
> - * interface
> - */
> - if (edac_mce_parse(mce))
> - return;
> + edac_mce_parse(mce);
The other problem with the current code is that it prints the misleading
KERN_EMERG fallback message
for every corrected error.
-Andi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-25 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-25 8:46 [PATCH] x86/MCE: don't let EDAC bypass the handle from MCE Chen Gong
2010-11-25 9:41 ` Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox