public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Borislav Petkov <bp@alien8.de>
Cc: "Luck, Tony" <tony.luck@intel.com>,
	Linux Edac Mailing List <linux-edac@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [RFC EDAC/GHES] edac: lock module owner to avoid error report conflicts
Date: Fri, 2 Nov 2012 00:25:08 -0200	[thread overview]
Message-ID: <20121102002508.6c0dcfc2@redhat.com> (raw)
In-Reply-To: <20121101235457.GA20890@liondog.tnic>

Em Fri, 2 Nov 2012 00:54:57 +0100
Borislav Petkov <bp@alien8.de> escreveu:

> On Thu, Nov 01, 2012 at 11:47:52PM +0000, Luck, Tony wrote:
> > > Right, but at least in the csrow case, we still can compute back the
> > > csrow even with the interleaving, after we know how it is done exactly
> > > (on which address bits, etc). I think this should be doable on Intel
> > > controllers too but I don't know.
> > 
> > No. Architecturally all Intel provides is the physical address in MCi_ADDR.
> > To do anything with that you are into per-system space, and the
> > registers that define the mappings are not necessarily available
> > to OS code ... sometimes they are, and sometimes they are even
> > documented in places where Mauro can use them to write an
> > EDAC driver ... but there are no guarantees.
> 
> One more reason that we need some sort of tables telling us which
> rank/csrow maps to which DIMM and thus silkscreen label so that we can
> be able to say the following from software:

If you take a look at sb_edac driver, you'll see that most of the driver's
logic is the part that do address->DIMM location mapping. It is a very
complex logic.

> 
> "You just had a single corrected ECC error in the DIMM with label
> P0_DIMM_A"

Converting from a DIMM location into a DIMM label is trivial, through:
just a simple table lookup.

As APEI/GHES seem to provide the DIMM location, a simple table lookup
should also work there, as I said before.
 
> or whatever unique naming each platform vendor comes up with.
> 
> The day hw people give me this, I'm going to throw a big party and
> invite all LKML.
> 

-- 
Regards,
Mauro

  reply	other threads:[~2012-11-02  2:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-31 13:58 [RFC EDAC/GHES] edac: lock module owner to avoid error report conflicts Mauro Carvalho Chehab
2012-11-01 11:05 ` Borislav Petkov
2012-11-01 11:47   ` Mauro Carvalho Chehab
2012-11-01 17:25     ` Tony Luck
2012-11-01 17:47       ` Mauro Carvalho Chehab
2012-11-01 19:55     ` Borislav Petkov
2012-11-01 21:09       ` Luck, Tony
2012-11-01 22:02         ` Borislav Petkov
2012-11-01 23:47           ` Luck, Tony
2012-11-01 23:54             ` Borislav Petkov
2012-11-02  2:25               ` Mauro Carvalho Chehab [this message]
2012-11-02  2:12       ` Mauro Carvalho Chehab

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=20121102002508.6c0dcfc2@redhat.com \
    --to=mchehab@redhat.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