All of lore.kernel.org
 help / color / mirror / Atom feed
From: Reinhard Arlt <reinhard.arlt@t-online.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] IRQ in realmode and sleep()
Date: Wed, 30 Jun 2010 09:02:46 +0200	[thread overview]
Message-ID: <4C2AEC16.9080906@t-online.de> (raw)
In-Reply-To: <20100629184405.GC24215@schlenkerla.am.freescale.net>

Hello,

Scott Wood wrote:
> On Tue, Jun 29, 2010 at 10:03:53AM +0200, Reinhard Arlt wrote:
>> Hello,
>>
>> the data cache is disabled on the CPCI750 board for the SDRAM by the
>> DBAT entry for the SDRAM, but the data cache is enabled for most
>> 74xx_7xx boards in
>>
>> cpu/74xx_7xx/start.S together with the translation.
>>
>> The decrementer irq is executed in real mode with translation disabled.
>>
>> Now in the irq routine, the processor writes the data into the cache,
>> and the sleep() reads directly from RAM, and do not see the timer running.
>>
>> A good solution would be to have translation on for the irq's too, but a
>> simple solution is to put an '#if !(defined CPCI750)' around the
>> routine, that enables the l1 data cache.
>
> Sounds like the right solution is to change the DBAT to be cacheable.
>
due to a bug in the MV64360, the data structures for the MPSC (serial 
port) must be in not cacheable ram. In operating systems, this is done 
by a page table entry, but i do not want to start with a page table in 
u-boot.

The question is: Is it O.K., that the irq routines run in real mode, 
with all your I/O locations are cacheable, for example.

> -Scott
>

Reinhard

  reply	other threads:[~2010-06-30  7:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29  8:03 [U-Boot] IRQ in realmode and sleep() Reinhard Arlt
2010-06-29 18:44 ` Scott Wood
2010-06-30  7:02   ` Reinhard Arlt [this message]
2010-06-30  7:59     ` Wolfgang Denk
2010-07-01  8:14       ` Reinhard Arlt

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=4C2AEC16.9080906@t-online.de \
    --to=reinhard.arlt@t-online.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.