public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mx53: use CONFIG_SYS_L2CACHE_OFF in config file
Date: Thu, 28 Jul 2011 12:40:39 +0200	[thread overview]
Message-ID: <4E313CA7.8040901@denx.de> (raw)
In-Reply-To: <CAB4PhKfpn9ALchC_-3RhEX-tbfDRQHkczTD+CQWLGd9C5OiwVw@mail.gmail.com>

On 07/28/2011 12:22 PM, Jason Liu wrote:
> Hi, stefano,

Hi Jason,

> Look at the meaning from the name X_OFF, if we define it, it tells
> people that we want to disable it explicitly.

Yes, but is only dead code for MX5. It has sense only if we add
l2_cache_enable() and disable functions.

> If not define it, it underlying
> tells that we want to enable it, right?

No, it says nothing. A lot of boards has not set this CONFIG, but this
does not mean that L2 cache is enabled.

> So, if we remove this define L2_OFF
> from board config file, it may cause confuse since we don't want to
> enable it now.

IMHO it is confusing if we add it.

If we set them into the config file, it means that the L2 Cache is
enable simply dropping it, and this is not true, as there is not yet
support. Better to add it when we have really support for it.

>> I am still checking this point. My concern is to understand if in the
>> current code we need to do something or not. If there is no code to
>> enable L2 cache (I have not found), there should be no need to disable
>> it. After a reset, L2 cache is disabled, am I right ?
>> Why do you think we have to explicitely disable it ? Am I missing
>> something ?
> 
> Currently, MX5 will disable L2 after reset. some points as above.

Ok, we agree

> Yes, currently, we don't manage L2.
> But, I don't know whether the common code will be changed in the future,
> if we don't disable L2 explicitly, it will enable L2 by default just
> like d-cache.

Well, we will check this issue when it will be needed. We cannot know
the future, it coul also be there is support for L2 Cache at that moment
for the i.MX5.

>> I think, if we agree on these point, we can manage the changes in a
>> single patch (changes are made on the same files, that is the
>> configuration file for the boards), and it is enough to add a useful
>> comment to explain what we do.
> 
> OK, after get agreement, I will do it soon with single patch.

Ok, I think we agree how to proceed ;-)

>> I am sure we get the same issues for D Cache as for the FEC. In fact,
>> for powerpc the fsl_esdhc.c enables cache snooping and does not need to
>> invalidate buffers. We have no counterpart for MX5.
> 
> Yes, correct.

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2011-07-28 10:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-26  8:25 [U-Boot] [PATCH] mx53: use CONFIG_SYS_L2CACHE_OFF in config file Jason Liu
2011-07-26  9:21 ` Stefano Babic
2011-07-26  9:44   ` Jason Hui
2011-07-28  5:56     ` Jason Liu
2011-07-28  6:32       ` Stefano Babic
2011-07-28 10:22         ` Jason Liu
2011-07-28 10:40           ` Stefano Babic [this message]
2011-07-26  9:34 ` Wolfgang Denk
2011-07-27  2:36   ` Jason Liu
  -- strict thread matches above, loose matches on Subject: below --
2011-07-26  8:17 Jason Liu

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=4E313CA7.8040901@denx.de \
    --to=sbabic@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox