From: Borislav Petkov <bp@alien8.de>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Rui Wang <ruiv.wang@gmail.com>,
lance.ortiz@hp.com, lance_ortiz@hotmail.com, jiang.liu@intel.com,
tony.luck@intel.com, rostedt@goodmis.org,
linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org,
linux-kernel@vger.kernel.org, gong.chen@linux.intel.com,
m.chehab@samsung.com, Rui Wang <rui.y.wang@intel.com>
Subject: Re: [PATCH] aerdrv: Fix severity usage in aer trace event
Date: Sun, 8 Dec 2013 16:09:04 +0100 [thread overview]
Message-ID: <20131208150904.GD4338@pd.tnic> (raw)
In-Reply-To: <20131208144312.GC4338@pd.tnic>
On Sun, Dec 08, 2013 at 03:43:12PM +0100, Borislav Petkov wrote:
> On Sun, Dec 08, 2013 at 12:17:53PM +0800, Rui Wang wrote:
> > There's inconsistency between dmesg and the trace event output.
> > When dmesg says "severity=Corrected", the trace event says
> > "severity=Fatal". What happens is that HW_EVENT_ERR_CORRECTED is
> > defined in edac.h:
> >
> > enum hw_event_mc_err_type {
> > HW_EVENT_ERR_CORRECTED,
> > HW_EVENT_ERR_UNCORRECTED,
> > HW_EVENT_ERR_FATAL,
> > HW_EVENT_ERR_INFO,
> > };
> >
> > while aer_print_error() uses aer_error_severity_string[] defined as:
> >
> > static const char *aer_error_severity_string[] = {
> > "Uncorrected (Non-Fatal)",
> > "Uncorrected (Fatal)",
> > "Corrected"
> > };
> >
> > In this case dmesg is correct because info->severity is assigned in
> > aer_isr_one_error() using the definitions in include/linux/ras.h:
> >
> > Signed-off-by: Rui Wang <rui.y.wang@intel.com>
>
> Applied, thanks.
I said "Applied" but this is Bjorn's area: Bjorn, wanna take this one or
are you fine with it going over the RAS tree?
Btw, I have a 2 trivial cleanups for aerdrv_errprint.c which are
following...
Thanks.
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
next prev parent reply other threads:[~2013-12-08 15:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-08 4:17 [PATCH] aerdrv: Fix severity usage in aer trace event Rui Wang
2013-12-08 5:09 ` Ethan Zhao
2013-12-08 14:43 ` Borislav Petkov
2013-12-08 15:09 ` Borislav Petkov [this message]
2013-12-09 23:41 ` Bjorn Helgaas
2013-12-10 0:40 ` Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131208150904.GD4338@pd.tnic \
--to=bp@alien8.de \
--cc=bhelgaas@google.com \
--cc=gong.chen@linux.intel.com \
--cc=jiang.liu@intel.com \
--cc=lance.ortiz@hp.com \
--cc=lance_ortiz@hotmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=m.chehab@samsung.com \
--cc=rostedt@goodmis.org \
--cc=rui.y.wang@intel.com \
--cc=ruiv.wang@gmail.com \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.