From: Markus Trippelsdorf <markus@trippelsdorf.de>
To: Borislav Petkov <bp@amd64.org>
Cc: "linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>,
Doug Thompson <dougthompson@xmission.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [EDAC-AMD64] Display correct RAM sizes in ganged mode on F10 CPUs
Date: Thu, 3 Feb 2011 16:59:52 +0100 [thread overview]
Message-ID: <20110203155951.GA1594@gentoo.trippels.de> (raw)
In-Reply-To: <20110203151721.GD24755@aftab>
On 2011.02.03 at 16:17 +0100, Borislav Petkov wrote:
> On Tue, Feb 01, 2011 at 02:27:52PM -0500, Markus Trippelsdorf wrote:
> > On 2011.02.01 at 19:51 +0100, Borislav Petkov wrote:
> > > On Sat, Jan 29, 2011 at 04:15:31PM -0500, Markus Trippelsdorf wrote:
> > > > The EDAC_AMD64 module displays only half the actual memory size, when
> > > > RAM is running in ganged mode on F10 CPUs. Fix this by moving the the
> > > > conversion factor check out of the if block, where it is never reached.
> > > >
> > > > With this patch:
> > > >
> > > > Unganged:
> > > > amd64: DRAM ECC enabled.
> > > > EDAC amd64: F10h detected (node 0).
> > > > EDAC amd64: using x4 syndromes.
> > > > EDAC MC: DCT0 chip selects:
> > > > kernel: EDAC amd64: MC: 0: 1024MB 1: 1024MB
> > > > kernel: EDAC amd64: MC: 2: 1024MB 3: 1024MB
> > > > kernel: EDAC amd64: MC: 4: 0MB 5: 0MB
> > > > kernel: EDAC amd64: MC: 6: 0MB 7: 0MB
> > > > kernel: EDAC MC: DCT1 chip selects:
> > > > kernel: EDAC amd64: MC: 0: 1024MB 1: 1024MB
> > > > kernel: EDAC amd64: MC: 2: 1024MB 3: 1024MB
> > > > kernel: EDAC amd64: MC: 4: 0MB 5: 0MB
> > > > kernel: EDAC amd64: MC: 6: 0MB 7: 0MB
> > > > kernel: EDAC amd64: MCT channel count: 2
>
> Ok, you've found a bug but it has to be fixed differently. See, the
> above reporting scheme actually doesn't change based on whether we're
> ganged or not. In your case, for example, you have 4 2GB dual-ranked
> DIMMs and they should always be shown as above, DCT0 has 2 DIMMs, with
> chip selects 0 and 1 (aka ranks) being DIMM0 and chip selects 2 and 3
> being DIMM2. You have the same config on the other channel, i.e. DCT1.
>
> Now, when we're running ganged, you still have the same physical
> configuration with the only difference that we read from the two DCTs in
> parallel. Thus, we want to print the above structure independent from
> the ganged setting.
>
> Here's a fix, it should correct the reporting on your machine.
Hm, that doesn't work:
EDAC amd64: F10h detected (node 0).
EDAC MC: DCT0 chip selects:
EDAC amd64: MC: 0: 1024MB 1: 1024MB
EDAC amd64: MC: 2: 1024MB 3: 1024MB
EDAC amd64: MC: 4: 0MB 5: 0MB
EDAC amd64: MC: 6: 0MB 7: 0MB
EDAC MC: DCT1 chip selects:
EDAC amd64: MC: 0: 0MB 1: 0MB
EDAC amd64: MC: 2: 0MB 3: 0MB
EDAC amd64: MC: 4: 0MB 5: 0MB
EDAC amd64: MC: 6: 0MB 7: 0MB
EDAC amd64: using x4 syndromes.
--
Markus
next prev parent reply other threads:[~2011-02-03 15:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-29 21:15 Markus Trippelsdorf
2011-02-01 18:51 ` Borislav Petkov
2011-02-01 19:27 ` Markus Trippelsdorf
2011-02-03 15:17 ` Borislav Petkov
2011-02-03 15:59 ` Markus Trippelsdorf [this message]
2011-02-03 16:36 ` Borislav Petkov
2011-02-03 16:42 ` Markus Trippelsdorf
2011-02-03 17:09 ` Borislav Petkov
2011-02-03 17:25 ` Markus Trippelsdorf
2011-02-03 17:58 ` 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=20110203155951.GA1594@gentoo.trippels.de \
--to=markus@trippelsdorf.de \
--cc=bp@amd64.org \
--cc=dougthompson@xmission.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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®