lkml.org 
[lkml]   [2011]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH]: mce: don't print "human readable" message for corrected errors
    Don't display the "human readable" warning for correctable errors in mce.
    There is no need for this information to be displayed.

    Signed-off-by: Prarit Bhargava <prarit@redhat.com>

    diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
    index 450a366..8024013 100644
    --- a/arch/x86/kernel/cpu/mcheck/mce.c
    +++ b/arch/x86/kernel/cpu/mcheck/mce.c
    @@ -100,10 +100,16 @@ ATOMIC_NOTIFIER_HEAD(x86_mce_decoder_chain);
    EXPORT_SYMBOL_GPL(x86_mce_decoder_chain);

    static int default_decode_mce(struct notifier_block *nb, unsigned long val,
    - void *data)
    + void *data)
    {
    - pr_emerg(HW_ERR "No human readable MCE decoding support on this CPU type.\n");
    - pr_emerg(HW_ERR "Run the message through 'mcelog --ascii' to decode.\n");
    + struct mce *m = (struct mce *)data;
    +
    + if (m->status & MCI_STATUS_UC) {
    + pr_emerg(HW_ERR "No human readable MCE decoding support "
    + "on this CPU type.\n");
    + pr_emerg(HW_ERR "Run the message through 'mcelog --ascii' "
    + "to decode.\n");
    + }

    return NOTIFY_STOP;
    }

    \
     
     \ /
      Last update: 2011-04-12 19:47    [from the cache]
    ©2003-2014 Jasper Spaans. hosted at Digital Ocean