mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Torsten Kaiser <just.for.lkml@googlemail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Borislav Petkov <borislav.petkov@amd.com>
Subject: Re: Linux 2.6.33-rc1
Date: Sun, 20 Dec 2009 18:53:24 +0100	[thread overview]
Message-ID: <64bb37e0912200953j2046a935n2f9ecd2cdfed780f@mail.gmail.com> (raw)
In-Reply-To: <64bb37e0912191154n4a7ea5benbb3da57f1aabdbe6@mail.gmail.com>

On Sat, Dec 19, 2009 at 8:54 PM, Torsten Kaiser
<just.for.lkml@googlemail.com> wrote:
> [    5.061998] EDAC MC: Ver: 2.1.0 Dec 18 2009
> [    5.062186] EDAC amd64_edac:  Ver: 3.3.0 Dec 18 2009
> [    5.062235] EDAC amd64: ECC is enabled by BIOS.
> [    5.062297] EDAC amd64: ECC is enabled by BIOS.
> [    5.128332] EDAC MC: Rev F or later detected
> [    5.134186] EDAC amd64: amd64_read_mc_registers: error reading F2x190.
> [    5.142290] EDAC amd64: amd64_read_mc_registers: error reading F2x194.
> [    5.150355] EDAC MC: DCT0 chip selects:
> [    5.150357] EDAC MC:  0:   512MB 1:   512MB
> [    5.150358] EDAC MC:  2:     0MB 3:     0MB
> [    5.150361] EDAC MC:  4:     0MB 5:     0MB
> [    5.150362] EDAC MC:  6:     0MB 7:     0MB
> [    5.150519] EDAC MC0: Giving out device to 'amd64_edac' 'RevF': DEV
> 0000:00:18.2
> [    5.150522] EDAC MC: Rev F or later detected
> [    5.150530] EDAC amd64: amd64_read_mc_registers: error reading F2x190.
> [    5.150532] EDAC amd64: amd64_read_mc_registers: error reading F2x194.
> [    5.150533] EDAC MC: DCT0 chip selects:
> [    5.150535] EDAC MC:  0:   512MB 1:   512MB
> [    5.150536] EDAC MC:  2:     0MB 3:     0MB
> [    5.150537] EDAC MC:  4:     0MB 5:     0MB
> [    5.150539] EDAC MC:  6:     0MB 7:     0MB
> [    5.150664] EDAC MC1: Giving out device to 'amd64_edac' 'RevF': DEV
> 0000:00:19.2
> [    5.150742] EDAC PCI0: Giving out device to module 'amd64_edac'
> controller 'EDAC PCI
>  controller': DEV '0000:00:18.2' (POLLED)
>
> The system has 4x 1GB RAM sticks (2 on each CPU).

After reading the code in drivers/edac/amd64_edac.c and the
documentation in the AMD reference doc (#32559, I have Rev. 3.08) the
bug is, that the current code does not try to differentiate between
the 64bit and the 128bit mode.
In the doc the sizes for the 64bit mode in table 10, section 4.5.8.1
are identical to the table ddr2_dbam in amd64_edac.c.
But for the 128bit mode the table 11 should be used, there the sizes
are doubled.

The code uses the bit 11 (named F10_WIDTH_128 in amd64_edac.h) of the
lower DRAM configuration register to determine the number of channels
in k8_early_channel_count(), but this is not used in
amd64_debug_display_dimm_sizes()

> And there is no line like 'EDAC PCI0' for the DRAM controller of the
> second CPU (19.2). Is that normal?

amd64_edac_init() calls amd64_init_2nd_stage() for each northbrigde,
but amd64_setup_pci_device() only once.

But from looking at the code, I can't see if a second device is needed or not.

Torsten

  reply	other threads:[~2009-12-20 17:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-18  2:05 Linus Torvalds
2009-12-19 19:54 ` Torsten Kaiser
2009-12-20 17:53   ` Torsten Kaiser [this message]
2009-12-20 19:14     ` Borislav Petkov
2009-12-20 19:36       ` Torsten Kaiser
2009-12-20 19:40         ` Torsten Kaiser
2009-12-21 14:05           ` Borislav Petkov
2009-12-21 14:31             ` Torsten Kaiser

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=64bb37e0912200953j2046a935n2f9ecd2cdfed780f@mail.gmail.com \
    --to=just.for.lkml@googlemail.com \
    --cc=borislav.petkov@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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®