public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: Max Asbock <masbock@linux.vnet.ibm.com>
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: Tue, 8 Jul 2014 00:09:18 +0200	[thread overview]
Message-ID: <20140707220918.GE4776@pd.tnic> (raw)
In-Reply-To: <1404752411.4484.25.camel@oc3432500282.ibm.com>

On Mon, Jul 07, 2014 at 10:00:11AM -0700, Max Asbock wrote:
> 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?

Yes.

> 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.

This is one of the things that needs discussion. First of all, this
solution aims to be generic enough, even for boxes which don't have an
EDAC driver.

Because if you don't have an EDAC driver, you'd still want to have some
sort of error mitigation.

Granted, most boxes *do* have an EDAC driver but still...

Then, the question is becoming very interesting: how much do we want
EDAC to get involved in the whole deal? Because if we're doing the error
collecting, decaying and page offlining in the kernel, I don't see why
we would need EDAC at all. Or any other agent for that matter.

Maybe for the counters only, if we have to be fair. If, say, people
would want to monitor error levels or so.

I guess we can add some interface which only increments the error counts
without the other error handling EDAC normally would do...

-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--

  reply	other threads:[~2014-07-07 22:09 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
2014-07-07 22:09     ` Borislav Petkov [this message]
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=20140707220918.GE4776@pd.tnic \
    --to=bp@alien8.de \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masbock@linux.vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox