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:35:11 +0300 [thread overview]
Message-ID: <3EF0162F.1000401@intracom.gr> (raw)
In-Reply-To: <20030618071646.6F0E8C5FD7@atlas.denx.de>
Wolfgang Denk wrote:
>In message <3EF00E16.3050604@intracom.gr> you wrote:
>
>> I think it's just proper defensive programming to always
>>do a CP reset in that case, and as soon as possible.
>>
>
>Then probably the boot loader should do it before starting the Linux
>kernel.
>
Yes, this is the best thing.
I propose we add two new functions to u-boot.
1. cpu_peripheral_reset()
Do a reset for the on-chip peripherals of the cpu.
For the 8xx family a CP reset is sufficient.
2. board_peripheral_reset()
A conditional function controlled by CONFIG_HAVE_BOARD_PERIPHERAL_RESET.
Do the reset for board specific peripherals.
And have them called before jumping into the kernel.
But this is a far reaching change for u-boot since
at least the cpu_peripheral_reset() must be implemented
for all the cpus that u-boot supports.
And I'm not talking about the boards.
The decision is yours Wolfgang.
>
>>The best thing we could do is do the reset at head_8xx.S.
>>
>
>Note that such a change will kill all attempts for ealy debug output
>over the serial console port.
>
>
That is truly unfortunate. Perhaps we can avoid the full
CP reset and do only the DMA peripheral reset in this case.
The buffers for the uart are in dpram anyway, so there no
chance for a crash.
>
>Wolfgang Denk
>
>
Regards
Pantelis
next prev parent reply other threads:[~2003-06-18 7:35 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
2003-06-18 7:16 ` Wolfgang Denk
2003-06-18 7:35 ` Pantelis Antoniou [this message]
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=3EF0162F.1000401@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