From: Pantelis Antoniou <panto@intracom.gr>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: [PATCH] 8xx: fix initialation bug/race condition between u-boot & linux
Date: Wed, 18 Jun 2003 10:00:38 +0300 [thread overview]
Message-ID: <3EF00E16.3050604@intracom.gr> (raw)
In-Reply-To: <20030617185401.GB31944@ip68-0-152-218.tc.ph.cox.net>
Tom Rini wrote:
>On Tue, Jun 17, 2003 at 03:43:34PM +0300, Pantelis Antoniou wrote:
>
>
>> The u-boot loader upon finishing the decompression of the
>>kernel image it just jumps into the kernel without
>>resetting the CP. The kernel however resets the CP only when
>>configured to apply a u-patch. The UART in the CP is
>>still active however, and the descriptors in dpram
>>end up overlapping.
>>
>
>I believe that the assumption here, which other firmwares follow, is
>that this would be taken care of already. Dan, do you recall making any
>assumptions about this either way?
>
>[snip]
>
>> This is only a bandaid however, because under network load
>>at the time of booting, i.e. broadcast packets or rebooting after
>>a crash and another end sending non TCP packets, we still crash.
>>
>[snip]
>
>> The proper way to address the problem is for the loader
>>to stop any DMA capable peripherals before executing
>>the kernel.
>>
>
>Does doing this fix, fix all of your problems?
>
>
Yes, this fixed my problems. But this is mostly luck.
It just happens that the reception buffer for the
ethernet packet is high enough in memory that no memory
corruption takes place.
I'm not sure however if we're completely safe in all cases.
I think it's just proper defensive programming to always
do a CP reset in that case, and as soon as possible.
The best thing we could do is do the reset at head_8xx.S.
Regards
Pantelis
next prev parent reply other threads:[~2003-06-18 7:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-17 12:43 [U-Boot-Users] [PATCH] 8xx: fix initialation bug/race condition between u-boot & linux Pantelis Antoniou
2003-06-17 18:54 ` [U-Boot-Users] " Tom Rini
2003-06-18 7:00 ` Pantelis Antoniou [this message]
2003-06-18 7:16 ` Wolfgang Denk
2003-06-18 7:35 ` Pantelis Antoniou
2003-06-18 8:32 ` Jaap-Jan Boor
2003-06-18 14:18 ` Tom Rini
2003-06-18 18:56 ` Dan Malek
2003-06-19 6:23 ` [U-Boot-Users] Re: [PATCH] 8xx: fix initialization " Pantelis Antoniou
2003-06-19 8:31 ` Wolfgang Denk
2003-06-19 9:21 ` Pantelis Antoniou
2003-06-19 10:09 ` Wolfgang Denk
2003-06-19 14:40 ` Tom Rini
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=3EF00E16.3050604@intracom.gr \
--to=panto@intracom.gr \
--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