public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Re: Bug in AT91RM9200: icache not enabled!
       [not found] <42345CB8.2020807@free.fr>
@ 2005-03-13 15:43 ` Steven Scholz
  2005-03-13 15:49   ` Steven Scholz
  2005-03-13 15:54   ` Eric BENARD / Free
  0 siblings, 2 replies; 4+ messages in thread
From: Steven Scholz @ 2005-03-13 15:43 UTC (permalink / raw)
  To: u-boot

Hi Eric,

thanks for your reply. Please include mailing list next time.

> I'm working on the same issue and had to modify cpu.c like on arm920 cpu
> and had to change in cpu/at91rm9200/start.s
> from :
>         mrc     p15, 0, r0, c1, c0, 0
>         /* Reset bit :Little Endian end fast bus mode */
>         ldr     r3, =0xC0000080
>         /* Set bit :Asynchronous clock mode, Not Fast Bus */
>         ldr     r4, =0xC0000000
>         bic     r0, r0, r3
>         orr     r0, r0, r4
>         /* write r0 in cp15 control register (cp15 r1) */
>         mcr     p15, 0, r0, c1, c0, 0
> 
> to :
> 	ldr	r0, =0xc000507C
>         @ write r0 in cp15 control register (cp15 r1)
>         mcr      p15, 0, r0, c1, c0,0

Yeah. Pretty much like arm920t.

> 
> & to remove the call to icache_enable in after lowlevelinit (no more
> necessary as the icache is enabled by the previous change.
> 
> in order to get both cache activated.

So you realy have both data and instruction cache enable in U-Boot?

--

Steven

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] Re: Bug in AT91RM9200: icache not enabled!
  2005-03-13 15:43 ` [U-Boot-Users] Re: Bug in AT91RM9200: icache not enabled! Steven Scholz
@ 2005-03-13 15:49   ` Steven Scholz
  2005-03-13 15:54   ` Eric BENARD / Free
  1 sibling, 0 replies; 4+ messages in thread
From: Steven Scholz @ 2005-03-13 15:49 UTC (permalink / raw)
  To: u-boot

Hi Eric,

>>     ldr    r0, =0xc000507C
>>         @ write r0 in cp15 control register (cp15 r1)
>>         mcr      p15, 0, r0, c1, c0,0

What is that "Round robin replacement" (Bit 14) for?

--
Steven

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] Re: Bug in AT91RM9200: icache not enabled!
  2005-03-13 15:43 ` [U-Boot-Users] Re: Bug in AT91RM9200: icache not enabled! Steven Scholz
  2005-03-13 15:49   ` Steven Scholz
@ 2005-03-13 15:54   ` Eric BENARD / Free
  2005-03-13 16:00     ` Steven Scholz
  1 sibling, 1 reply; 4+ messages in thread
From: Eric BENARD / Free @ 2005-03-13 15:54 UTC (permalink / raw)
  To: u-boot

Steven Scholz a ?crit :
> thanks for your reply. Please include mailing list next time.
> 
sorry, I'm reading through gmane and I'm not subscribed to the list.
> 
> So you realy have both data and instruction cache enable in U-Boot?
> 
yes, at least I think so as kernel uncompressing is really faster when
using this setting.

Just add CFG_CMD_CACHE to #define CONFIG_COMMANDS in your
include/configs/x.h file
and you will be able to get cache informations :
=> icache
Instruction Cache is ON
=> dcache
Data (writethrough) Cache is ON

The strange thing is that :
- it's possible to turn icache off but not to enable it again
- it's not possible to turn dcache off.

=> icache off
Instruction Cache is OFF
=> icache on
Instruction Cache is OFF
=> dcache off
Data (writethrough) Cache is ON
=> dcache on
Data (writethrough) Cache is ON

I'm trying to understand why.

Eric

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] Re: Bug in AT91RM9200: icache not enabled!
  2005-03-13 15:54   ` Eric BENARD / Free
@ 2005-03-13 16:00     ` Steven Scholz
  0 siblings, 0 replies; 4+ messages in thread
From: Steven Scholz @ 2005-03-13 16:00 UTC (permalink / raw)
  To: u-boot

Hi Eric,

> The strange thing is that :
> - it's possible to turn icache off but not to enable it again
> - it's not possible to turn dcache off.
> 
> => icache off
> Instruction Cache is OFF
> => icache on
> Instruction Cache is OFF
> => dcache off
> Data (writethrough) Cache is ON
> => dcache on
> Data (writethrough) Cache is ON

I am seeing the same. And I dont understand it rigth now.

--
Steven

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-03-13 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <42345CB8.2020807@free.fr>
2005-03-13 15:43 ` [U-Boot-Users] Re: Bug in AT91RM9200: icache not enabled! Steven Scholz
2005-03-13 15:49   ` Steven Scholz
2005-03-13 15:54   ` Eric BENARD / Free
2005-03-13 16:00     ` Steven Scholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox