From: Grant Erickson <gerickson@nuovations.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] PPC440GX: DDR ECC init time.
Date: Tue, 08 Sep 2009 08:19:36 -0700 [thread overview]
Message-ID: <C6CBC418.18D5E%gerickson@nuovations.com> (raw)
In-Reply-To: <200909081149.44534.sr@denx.de>
On 9/8/09 2:49 AM, Stefan Roese wrote:
> On Tuesday 08 September 2009 11:19:41 Felix Radensky wrote:
>> Not exactly related to the subject under discussion, but I thought I'd
>> mention it.
>>
>> I had problems with ecc_init() on a custom 460EX board with soldered DDR2.
>> Right after ecc_init() u-boot was crashing on PLB access. I've modified
>> the code
>> to use program_ecc_addr() instead of ecc_init(), and problem was solved.
>> I was
>> wandering why use two different ECC initialization routines for SPD and
>> soldered
>> cases, when program_ecc_addr() can do the job in both cases, while
>> ecc_init()
>> apparently has issues ?
>
> Most likely historic reasons. I added Grant Erickson to Cc, IIRC he
> added/tested this ecc_init() code. Maybe he can shed some more light into
> this.
>
> But from looking at it, it seems to me that we should get rid of one of those
> routines. program_ecc_addr() seems more generic to me. Patches welcome. ;)
>
> Thanks.
>
> Cheers,
> Stefan
Felix:
Stefan is correct. IIRC, bits of the various 4xx/44x RAM initialization
functions were evolving in parallel at that time. I believe I used ecc_init
at the time because it was more fitting to the soldered DDR2 405EXr board I
was using vs. program_ecc_addr which was more tuned to 440, SPD socketed
RAM.
Looking at the code today, that no longer appears to be the case. So, I
agree with Stefan. For the present, these implementations should be merged
and unified and any duplicate code eliminated.
Regards,
Grant
prev parent reply other threads:[~2009-09-08 15:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-04 12:34 [U-Boot] PPC440GX: DDR ECC init time Wouter Eckhardt
2009-09-04 12:50 ` Stefan Roese
2009-09-04 13:06 ` Wouter Eckhardt
2009-09-04 13:13 ` Stefan Roese
2009-09-07 13:57 ` Wouter Eckhardt
2009-09-07 14:23 ` Stefan Roese
2009-09-08 9:19 ` Felix Radensky
2009-09-08 9:49 ` Stefan Roese
2009-09-08 10:05 ` Felix Radensky
2009-09-08 11:04 ` Stefan Roese
2009-09-08 15:19 ` Grant Erickson [this message]
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=C6CBC418.18D5E%gerickson@nuovations.com \
--to=gerickson@nuovations.com \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.