lkml.org 
[lkml]   [2017]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 6/7] EDAC, mce_amd: Issue the decoded info through the TP or printk()
    On Fri, 25 Aug 2017 12:24:10 +0200
    Borislav Petkov <bp@alien8.de> wrote:

    > From: Borislav Petkov <bp@suse.de>
    >
    > ... depending on whether we have userspace consumers. Handle the HW_ERR
    > prefix accordingly - for printk() I need to do some strsep() monkey
    > business.
    >
    > Signed-off-by: Borislav Petkov <bp@suse.de>
    > ---
    > drivers/edac/mce_amd.c | 106 +++++++++++++++++++++++++++++++------------------
    > 1 file changed, 68 insertions(+), 38 deletions(-)
    >
    > diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
    > index b7c1f8f7e871..41c09d5b81f0 100644
    > --- a/drivers/edac/mce_amd.c
    > +++ b/drivers/edac/mce_amd.c
    > @@ -2,9 +2,12 @@
    > #include <linux/seq_buf.h>
    > #include <linux/module.h>
    > #include <linux/slab.h>
    > +#include <linux/ras.h>
    >
    > #include <asm/cpu.h>
    >
    > +#include <trace/events/mce.h>
    > +
    > #include "mce_amd.h"
    >
    > static struct amd_decoder_ops *fam_ops;
    > @@ -465,7 +468,7 @@ static void decode_mc0_mce(struct mce *m)
    > u16 ec = EC(m->status);
    > u8 xec = XEC(m->status, xec_mask);
    >
    > - seq_buf_printf(&sb, HW_ERR "MC0 Error: ");
    > + seq_buf_printf(&sb, "MC0 Error: ");

    Use seq_buf_puts() in this patch too.

    -- Steve

    >
    > /* TLB error signatures are the same across families */
    > if (TLB_ERROR(ec)) {

    \
     
     \ /
      Last update: 2017-08-25 15:34    [W:2.909 / U:1.256 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site