From: gvb.uboot <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] MPC5121 (and MPC5200) ethernet initialization delay
Date: Mon, 17 Dec 2007 22:17:48 -0500 [thread overview]
Message-ID: <47673BDC.2090602@gmail.com> (raw)
In-Reply-To: <f3f1b91a0712171737v6638a888lda713e94b0a4f403@mail.gmail.com>
Chris Morgan wrote:
> On Dec 17, 2007 6:21 PM, gvb.uboot <gvb.uboot@gmail.com> wrote:
>> Chris Morgan wrote:
>>> Here at Bose we've measured a significant delay in the time it takes
>>> to initialize ethernet on the MPC5121, a delay of ~2 seconds. I've
>>> seen the same delay on the MPC5200 with u-boot 1.1.3. Currently we are
>>> using the mpc5121 ads version of u-boot from Freescale, based on
>>> 1.2.0.
>>>
>>> Is there a known requirement in the ethernet hardware or protocol that
>>> requires this 2 second delay? Auto detection of speed or something?
>>>
>>> Because we haven't been using ethernet to boot, only to program flash,
>>> we've been able to eliminate the delay by moving the ethernet init
>>> until after the user has pressed enter and broken into the shell. This
>>> would naturally break bootcmds that used ethernet, like nfs or tftp
>>> booting. If the delay is fixed due to hardware I'm wondering if it
>>> would be acceptable to make the ethernet initialization occur on
>>> demand when other code wanted to access the ethernet device?
>>>
>>> Chris
>> A 2 second delay sounds exactly like the PHY autonegotiating the link
>> speed (if you add up the numbers in the 100bT standard, it is 2 seconds).
>>
>> One of Wolfgang's mantras is that hardware must not be initialized
>> before and unless it is used. There is some gray area here... you do
>> use the ethernet, just not all the time.
>>
>> I can guess (with pretty good assurance) about the cause of the delay,
>> but I'm not aware of any really good options to eliminate the delay.
>> Sorry. Hardwiring the speed is very ugly. If you start the
>> autonegotiation on power up (typically the PHY can be configured to do
>> this via hardware strapping) and *don't* restart it when the ethernet is
>> initialized, it can hide the delay. Or your solution may be the best
>> (for you).
>>
>> HTH,
>> gvb
>>
>
> Hi Jerry.
>
> One of the hardware guys speculated about the autonegotation being the
> cause of the delay so I guess it has at least a few votes now. I'm
> hoping for a Freescale person on this list to verify the cause of the
> issue as something we can't just change a few registers and fix.
Well, for a crude confirmation, you can watch the link status LEDs on
your switch (and board, if your board has them). My prediction is that
the link LED probably will go on (hardware started autonegotiation
complete - might not happen), go off for two seconds (software reset the
PHY, restarting the autonegotiation), and then come back on again. The
second "on" will coincide with your delay ending.
[snip]
gvb
next prev parent reply other threads:[~2007-12-18 3:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 19:03 [U-Boot-Users] MPC5121 (and MPC5200) ethernet initialization delay Chris Morgan
2007-12-17 23:21 ` gvb.uboot
2007-12-18 1:37 ` Chris Morgan
2007-12-18 3:17 ` gvb.uboot [this message]
2007-12-18 5:20 ` Stefan Roese
2007-12-18 8:16 ` Wolfgang Denk
2007-12-18 9:03 ` Stefan Roese
2007-12-18 17:38 ` Chris Morgan
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=47673BDC.2090602@gmail.com \
--to=gvb.uboot@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox