From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] ppc4xx: Add dcache_enable() for 440
Date: Mon, 21 Apr 2008 09:44:12 +0200 [thread overview]
Message-ID: <20080421074412.AF691247AF@gemini.denx.de> (raw)
In-Reply-To: Your message of "Mon, 21 Apr 2008 07:29:53 +0200." <200804210729.53635.sr@denx.de>
Dear Stefan,
in message <200804210729.53635.sr@denx.de> you wrote:
>
> > I don't like to see these either, but it's better than lying in the
> > face of the user.
>
> Please note that it is not so easy on 440 to even define *what exactly* the
> functions/commands d/icache_en/disable mean. This is because 440 has MMU
> support and we can have different cache setups for all TLB entries. So to
> which TLB entries should these functions refer? Just those mapping SDRAM?
> And/or FLASH? And/or internal SRAM? ...
You are the 440 expert, not me :-)
> > > you are you asking for additional changes too. Are you asking me to
> > > remove (a) all dummy cache entries or (b) to support *real* cache suppo> rt
> > > functions for 440? (a) would lead as explained above to bigger code
> > > changes in the common code and (b) is extremely difficult and I just ha> ve
> > > no time for such a thing currently.
> >
> > Yes, let's do either (a) or (b). There is no other choice.
>
> From my point of view, both "solutions" should not be done outside of a
> merge-window. I'll try to find some time to implement on of those options in
> the next weeks. But perhaps somebody else has more "free time" and sends
> patches to implement (and test) this stuff.
I agree that it is probably not possible to fix this right now,
especially since the actual problem is older, it just became visible
now.
But I insist that this must be fixed for the next release - and
actually it seems to be a good thing to really enable the instruction
cache - this would allow to speed up booting on 440 systems quite a
bit.
> > This still leaves the problem of the current "implementation" of the
> > other stubs. Please note that as is, we even have *random* behaviour
> > of the code, as the functions are supposed to return the cache
> > status, but no return value gets loaded.
>
> I don't see such a problem with *random* behavior. d/icache_status return 0 on
> 440.
Ah, you are right. I thought that the {i,d}cache_{en,dis}able()
functions returned a status, but they are indeed void. Sorry for the
false alarm.
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
There's no sense in being precise when you don't even know what
you're talking about. -- John von Neumann
next prev parent reply other threads:[~2008-04-21 7:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-18 14:51 [U-Boot-Users] [PATCH] ppc4xx: Add dcache_enable() for 440 Stefan Roese
2008-04-20 22:34 ` Wolfgang Denk
2008-04-21 4:58 ` Stefan Roese
2008-04-21 5:04 ` Wolfgang Denk
2008-04-21 5:29 ` Stefan Roese
2008-04-21 7:44 ` Wolfgang Denk [this message]
2008-04-21 8:23 ` Stefan Roese
2008-04-21 9:12 ` Wolfgang Denk
2008-04-21 9:45 ` Stefan Roese
2008-04-21 10:27 ` Wolfgang Denk
2008-04-21 11:37 ` [U-Boot-Users] [PATCH] Fix missing dcache_enable symbol and declare cache function as weak Jean-Christophe PLAGNIOL-VILLARD
2008-04-21 12:18 ` Wolfgang Denk
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=20080421074412.AF691247AF@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.