linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@amd64.org>
To: Josh Hunt <johunt@akamai.com>
Cc: "linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] amd64_edac: Memory size reported double on processor family 0Fh
Date: Fri, 21 Sep 2012 16:01:33 +0200	[thread overview]
Message-ID: <20120921140133.GA27890@aftab.osrc.amd.com> (raw)
In-Reply-To: <505C6558.1040405@akamai.com>

On Fri, Sep 21, 2012 at 08:02:16AM -0500, Josh Hunt wrote:
> On 09/21/2012 07:36 AM, Borislav Petkov wrote:
> >Ok, I think this is still the old code you're looking at so it would be
> >cool if you could test with my patchset I sent you last week.
> >
> >Because with it, it all looks fine on my K8 here:
> >
> >It has 2 2048MB single-ranked DIMMs on each node and edac output looks
> >like this:
> >
> >[   52.920302] EDAC DEBUG: amd64_debug_display_dimm_sizes: F2x080 (DRAM Bank Address Mapping): 0x00000060
> >[   52.920302] EDAC MC: DCT0 chip selects:
> >[   52.920304] EDAC amd64: MC: 0:     0MB 1:     0MB
> >[   52.920305] EDAC amd64: MC: 2:  2048MB 3:  2048MB
> >[   52.920306] EDAC amd64: MC: 4:     0MB 5:     0MB
> >[   52.920308] EDAC amd64: MC: 6:     0MB 7:     0MB
> >
> >...
> >
> >[   52.920344] EDAC DEBUG: init_csrows: node 1, NBCFG=0x0ad00044[ChipKillEccCap: 1|DramEccEn: 1]
> >[   52.920345] EDAC DEBUG: init_csrows: MC node: 1, csrow: 2
> >[   52.920346] EDAC DEBUG: amd64_csrow_nr_pages: csrow: 2, channel: 0, DBAM idx: 6
> >[   52.920347] EDAC DEBUG: amd64_csrow_nr_pages: nr_pages/channel: 524288
> >[   52.920348] EDAC amd64: CS2: Registered DDR2 RAM
> >[   52.920350] EDAC DEBUG: init_csrows: Total csrow2 pages: 524288
> >[   52.920351] EDAC DEBUG: init_csrows: MC node: 1, csrow: 3
> >[   52.920352] EDAC DEBUG: amd64_csrow_nr_pages: csrow: 3, channel: 0, DBAM idx: 6
> >[   52.920353] EDAC DEBUG: amd64_csrow_nr_pages: nr_pages/channel: 524288
> >[   52.920354] EDAC amd64: CS3: Registered DDR2 RAM
> >[   52.920355] EDAC DEBUG: init_csrows: Total csrow3 pages: 524288
> >
> >$ cat /sys/devices/system/edac/mc/mc0/csrow2/size_mb
> >2048
> >$ cat /sys/devices/system/edac/mc/mc0/csrow3/size_mb
> >2048
> >
> >So what am I missing?
> >
> >Thanks.
> 
> I'm running with your edac-queue branch with the last commit being:
>  9d67117feece8852570cc8ee25b68c41f8def323
> 
> You can verify this with my dmesg (also attached) showing the new
> dbg messages added:
> 
> <patch>
> +       edac_dbg(0, "csrow: %d, channel: %d, DBAM idx: %d\n",
> +                   csrow_nr, dct,  cs_mode);
> +       edac_dbg(0, "nr_pages/channel: %u\n", nr_pages);
> </patch>
> 
> <dmesg>
> [   25.838822] EDAC DEBUG: amd64_csrow_nr_pages: csrow: 3, channel:
> 0, DBAM idx: 2
> [   25.838823] EDAC DEBUG: amd64_csrow_nr_pages: nr_pages/channel: 262144
> </dmesg>
> 
> Please let me know if this is the wrong version and I can rerun with
> the correct one.

Ah ok, my bad, I have 4 more patches ontop which should deal with the
channel doubling, please repull the same branch which I've just updated.

git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git edac-queue

and retest.

And you're right about WIDTH_128 - it actually denotes the channel width
and the code wrongly uses it to say that there are two channels on K8.

However, this has been the case since the driver went upstream and I
need to think a bit harder when correcting that so that I don't upset
something else in it.

Also, it would be very helpful if you send me full dmesg after you've
applied the latest patches so that I can have another reference when
changing the WIDTH_128 thing.

Thanks for your help.

-- 
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551

  reply	other threads:[~2012-09-21 14:01 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1347403947-20187-1-git-send-email-johunt@akamai.com>
2012-09-11 23:02 ` [PATCH] amd64_edac: Memory size reported double on processor family 0Fh Josh Hunt
2012-09-12  8:51   ` Borislav Petkov
2012-09-12 12:38     ` Josh Hunt
2012-09-12 12:52       ` Josh Hunt
2012-09-12 15:30         ` Borislav Petkov
2012-09-12 15:37           ` Josh Hunt
2012-09-12 15:49             ` Borislav Petkov
2012-09-12 16:23               ` Josh Hunt
2012-09-12 16:48                 ` Borislav Petkov
2012-09-12 16:58                   ` Josh Hunt
2012-09-12 17:06                     ` Borislav Petkov
2012-09-12 17:23                       ` Borislav Petkov
2012-09-14 12:55                         ` Josh Hunt
2012-09-14 14:39                           ` Josh Hunt
2012-09-14 15:40                             ` Borislav Petkov
2012-09-21 12:36                             ` Borislav Petkov
2012-09-21 13:02                               ` Josh Hunt
2012-09-21 14:01                                 ` Borislav Petkov [this message]
2012-09-21 14:54                                   ` Josh Hunt
2012-09-21 15:10                                     ` 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=20120921140133.GA27890@aftab.osrc.amd.com \
    --to=bp@amd64.org \
    --cc=johunt@akamai.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;
as well as URLs for NNTP newsgroup(s).