From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc/lib/board.c: Call run_post(POST_ROM) before relocating
Date: Sun, 23 Oct 2011 22:58:09 +0200 [thread overview]
Message-ID: <20111023205809.2E8C81408E9B@gemini.denx.de> (raw)
In-Reply-To: <1318759628-10668-1-git-send-email-bernhard.kaindl@gmx.net>
Dear Bernhard Kaindl,
In message <1318759628-10668-1-git-send-email-bernhard.kaindl@gmx.net> you wrote:
> From: Bernhard Kaindl <bernhard.kaindl@thalesgroup.com>
>
> The call to run_post(POST_ROM) which can run the POST memory test
> is currently called too late when gd has already been copied to DRAM.
>
> This results in failure to boot Linux after a POST_ROM memory test
> tested all RAM while gd was already relocated to DRAM due to gd being
> overwritten by the POST_ROM memory test.
>
> Support this by moving the call to run_post(POST_ROM) to run earlier,
> before U-Boot has started to move data to DRAM (from late board_init_f
> to early board_init_f) where DRAM is initialized, but not used yet.
>
> This allows that an POST memory test can test the whole DRAM,
> including the area where the board info struct is located.
>
> Signed-off-by: Bernhard Kaindl <bernhard.kaindl@thalesgroup.com>
> Cc: Pieter Voorthuijsen <pieter.voorthuijsen@prodrive.nl>
> ---
> arch/powerpc/lib/board.c | 14 +++++++-------
> 1 files changed, 7 insertions(+), 7 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Totally illogical, there was no chance.
-- Spock, "The Galileo Seven", stardate 2822.3
prev parent reply other threads:[~2011-10-23 20:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-16 10:07 [U-Boot] [PATCH] powerpc/lib/board.c: Call run_post(POST_ROM) before relocating Bernhard Kaindl
2011-10-23 20:58 ` Wolfgang Denk [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=20111023205809.2E8C81408E9B@gemini.denx.de \
--to=wd@denx.de \
--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.