All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Cache issue on MPC8xx
Date: Thu, 24 Aug 2006 14:05:33 -0400	[thread overview]
Message-ID: <44EDEA6D.2020709@smiths-aerospace.com> (raw)
In-Reply-To: <b4ebaa9d0608241018r72432c8ao50229c703ad9c12@mail.gmail.com>

Qichen Huang wrote:
> On 8/24/06, Wolfgang Denk <wd@denx.de> wrote:
>> In message <b4ebaa9d0608240832i212b01aey4f?e1362002756833@mail.gmail.com> you wrote:
>>> I did so, but still couldn't get D-Cache enabled.
>> Then you did something wrong.
> I have been trapped in this problem for a long time. Could you tell me
> some more details. Thanks.
> 
> What I did is:
>  - set msr to 0.
>  - disable D-cache
>  - enable D-cache  <-- and it crashes here.

This is impossibly vague.  There are many reasons for "it crashes here." 
including that it quite likely doesn't crash there.

* Are you running with instruction cache enabled?  If so, your memory 
controller is probably configured OK.  If not, it is very possible that 
your memory controller isn't handling bursts properly.

* How do you know it crashes there?  When you turn on data cache, all of 
your peripherals, including blinkin' LEDs and your UART, get cached so 
you won't see anything unless you have set up BAT registers or the MMU 
to control the data cache such that your peripherals are NOT cached.

* If you have set up the BAT and/or the MMU, did you do it correctly?

* Did you FOLLOW THE INSTRUCTIONS in the user's guide on the proper 
sequence when messing with the MSR register?  Really weird things happen 
if you don't (or so they tell me ;-).

> What is the correct way?

That is the nutshell correct way.  There are a lot of details that have 
to be done right before it works, however.  There is a devil hiding in 
each and every detail.

> Qichen

HTH,
gvb

  reply	other threads:[~2006-08-24 18:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-24 11:55 [U-Boot-Users] Cache issue on MPC8xx Qichen Huang
2006-08-24 12:16 ` Wolfgang Denk
2006-08-24 15:32   ` Qichen Huang
     [not found]     ` <20060824162312.92737353A61@atlas.denx.de>
2006-08-24 17:18       ` Qichen Huang
2006-08-24 18:05         ` Jerry Van Baren [this message]
2006-08-24 18:55           ` Qichen Huang

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=44EDEA6D.2020709@smiths-aerospace.com \
    --to=gerald.vanbaren@smiths-aerospace.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 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.