From: Max Asbock <masbock@linux.vnet.ibm.com>
To: Borislav Petkov <bp@alien8.de>
Cc: linux-edac <linux-edac@vger.kernel.org>,
Tony Luck <tony.luck@intel.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -v3 3/4] MCE, CE: Wire in the CE collector
Date: Mon, 07 Jul 2014 10:00:11 -0700 [thread overview]
Message-ID: <1404752411.4484.25.camel@oc3432500282.ibm.com> (raw)
In-Reply-To: <1404242623-10094-4-git-send-email-bp@alien8.de>
On Tue, 2014-07-01 at 21:23 +0200, Borislav Petkov wrote:
> From: Borislav Petkov <bp@suse.de>
>
> Add the CE collector to the polling path which collects the correctable
> errors. Collect only DRAM ECC errors for now.
>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> ---
> arch/x86/kernel/cpu/mcheck/mce.c | 84 ++++++++++++++++++++++++++++++++++++----
> 1 file changed, 76 insertions(+), 8 deletions(-)
>
> +
> +static void __log_ce(struct mce *m, enum mcp_flags flags)
> +{
> + /*
> + * Don't get the IP here because it's unlikely to have anything to do
> + * with the actual error location.
> + */
The above comment doesn't belong here. This function is about how to
dispose of corrected errors, not what data should be collected.
(Besides this comment is obsolete as the IP is always collected in
mce_gather_info()).
> + if ((flags & MCP_DONTLOG) || mca_cfg.dont_log_ce)
> + return;
> +
> + if (dram_ce_error(m)) {
> + /*
> + * In the cases where we don't have a valid address after all,
> + * do not collect but log.
> + */
> + if (!(m->status & MCI_STATUS_ADDRV))
> + goto log;
> +
> + mce_ring_add(&__get_cpu_var(ce_ring), m->addr >> PAGE_SHIFT);
> + return;
> + }
> +
> +log:
> + mce_log(m);
> +}
The above code is a bit convoluted, it amounts to:
if (we have a corrected dram error && we have an address for it)
mce_ring_add()
else
mcelog()
Is that the intention? This might be problematic for downstream
consumers of the errors such as the EDAC drivers which keep counts of
errors. If errors are silently removed from the stream these counts will
be bogus. Somebody might wonder why a page was off-lined while the EDAC
driver reports zero corrected DRAM error counts.
- Max
next prev parent reply other threads:[~2014-07-07 17:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 19:23 [PATCH -v3 0/4] RAS: Correctable Errors Collector thing Borislav Petkov
2014-07-01 19:23 ` [PATCH -v3 1/4] x86, MCE: Make the mce_ring explicit Borislav Petkov
2014-07-01 19:23 ` [PATCH -v3 2/4] RAS: Add a Corrected Errors Collector Borislav Petkov
2014-07-05 10:54 ` Borislav Petkov
2014-07-01 19:23 ` [PATCH -v3 3/4] MCE, CE: Wire in the CE collector Borislav Petkov
2014-07-07 17:00 ` Max Asbock [this message]
2014-07-07 22:09 ` Borislav Petkov
2014-07-01 19:23 ` [PATCH -v3 4/4] MCE, CE: Add debugging glue Borislav Petkov
[not found] ` <CAMY-HrCRS0RcBO0sMtwOKwYmS_+q89Kpr5Y0WyhpfQdapaQzLA@mail.gmail.com>
2014-12-17 2:26 ` [PATCH -v3 0/4] RAS: Correctable Errors Collector thing Calvin Owens
2014-12-17 21:17 ` 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=1404752411.4484.25.camel@oc3432500282.ibm.com \
--to=masbock@linux.vnet.ibm.com \
--cc=bp@alien8.de \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®