public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] common/board_r: Fix booting issue on T4240QDS
Date: Mon, 6 Oct 2014 12:08:41 -0700	[thread overview]
Message-ID: <5432E8B9.6000702@freescale.com> (raw)
In-Reply-To: <CAPnjgZ0JOUvqrV9pn8Ln2Tr6WyEmL1b9P=Y-YdKjpqv=i2ubRw@mail.gmail.com>

On 10/03/2014 07:21 PM, Simon Glass wrote:
> On 2 October 2014 16:20, York Sun <yorksun@freescale.com> wrote:
>> Commit 294b91a5817147d4b7f47be2ac69bac2a1f26491 moved initr_malloc
>> earlier than initr_unlock_ram_in_cache. This causes issue on T4240.
>> It may be related to locked L1 d-cache and unlocked L2 cache. D-
>> cache could and should be unlock earlier for normal operation.
>>
>> This patch moves initr_unlock_ram_in_cache before initr_malloc. It
>> has been verified on the following boards, in which only T4240QDS
>> suffered and has been since fixed: T4240QDS, T2080QDS, P5040DS,
>> P4080DS, MPC8572DS, MPC8536DS, MPC8641HPCN, B4860QDS.
>>
>> Signed-off-by: York Sun <yorksun@freescale.com>
>> CC: Scott Wood <scottwood@freescale.com>
>> CC: Simon Glass <sjg@chromium.org>
>> ---
>> The root cause of the this failure wasn't identified. It may be hidden
>> too deep to be dug out in time. This fix preserves the order of original
>> code between initr_malloc and initr_unlock_ram_in_cache.
>>
>>  common/board_r.c |    6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/common/board_r.c b/common/board_r.c
>> index 231c6d6..c339aad 100644
>> --- a/common/board_r.c
>> +++ b/common/board_r.c
>> @@ -717,6 +717,9 @@ init_fnc_t init_sequence_r[] = {
>>         initr_caches,
>>  #endif
>>         initr_reloc_global_data,
>> +#if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500)
>> +       initr_unlock_ram_in_cache,
>> +#endif
> 
> The code looks fine. Are we sure it shouldn't go above
> initr_reloc_global_data()?
> 
> Acked-by: Simon Glass <sjg@chromium.org>
> 

Tom,

Can you pick up this one? I don't have patches pending for 2014.10 for now.

York

  parent reply	other threads:[~2014-10-06 19:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02 22:20 [U-Boot] [PATCH] common/board_r: Fix booting issue on T4240QDS York Sun
2014-10-04  2:21 ` Simon Glass
2014-10-04  2:31   ` York Sun
2014-10-04  2:32     ` Scott Wood
2014-10-06 19:08   ` York Sun [this message]
2014-10-10 14:39 ` [U-Boot] " 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=5432E8B9.6000702@freescale.com \
    --to=yorksun@freescale.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