From: Rafal Jaworowski <raj@semihalf.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Inefficient code in NetLoop() ?
Date: Fri, 26 Sep 2008 10:14:19 +0200 [thread overview]
Message-ID: <48DC99DB.2080806@semihalf.com> (raw)
In-Reply-To: <200809260955.59674.sr@denx.de>
Stefan Roese wrote:
> On Friday 26 September 2008, Wolfgang Denk wrote:
>>>> Am I reading this correctly that we eth_halt() and eth_init() the
>>>> network interface for each and every call to NetLoop?
>>> Yes, it looks that way. Ripe for gutting.
>> I didn't have much time to look into the code, so I'm just speculating
>> - maybe this is needed for switching interfaces in case of errors?
>
> Some ethernet interfaces (e.g. ppc4xx) need to get stopped after the network
> transaction. Otherwise the interface will continue to DMA data to the buffers
> and this could break OS booting. So please don't remove the eth_halt() after
> the transaction is finished.
I share Stefan's concerns. Isn't in general the eth_init()/eth_halt()
construct because of polling mode where the network controller needs to make
sure to operate in well defined states?
In our deployments of using U-Boot networking facilities in standalone apps,
there were problems when not doing the full eth_init()/eth_halt() sequence:
without closing eth_halt() after the initial successfull transaction the
network interface would choke and not work after some time, and all subsequent
transfers would fail.
kind regards,
Rafal
next prev parent reply other threads:[~2008-09-26 8:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-12 19:50 [U-Boot] Inefficient code in NetLoop() ? Wolfgang Denk
2008-09-26 6:09 ` Ben Warren
2008-09-26 7:36 ` Wolfgang Denk
2008-09-26 7:55 ` Stefan Roese
2008-09-26 8:14 ` Rafal Jaworowski [this message]
2008-09-26 8:28 ` Wolfgang Denk
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=48DC99DB.2080806@semihalf.com \
--to=raj@semihalf.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.