linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hzpeterchen@gmail.com (Peter Chen)
To: linux-arm-kernel@lists.infradead.org
Subject: About ARM TCM patch
Date: Sun, 27 Sep 2009 09:29:45 +0800	[thread overview]
Message-ID: <1254014985.3663.2.camel@nchen-desktop> (raw)
In-Reply-To: <63386a3d0909261458kda21ae0q5af3b07bfc0c4e87@mail.gmail.com>

On Sat, 2009-09-26 at 23:58 +0200, Linus Walleij wrote:
> 2009/9/25 Linus Walleij <linus.ml.walleij@gmail.com>:
> > 2009/9/25 Peter Chen <hzpeterchen@gmail.com>:
> 
> >> 1. After MMU open, the code running at ITCM can't see physical address for
> >> register.
> >>
> >> 2. After MMU open, the code can't run at physical addressed ITCM.
> >
> > Could this be different between ARM9 (which I use) and ARM11?
> 
> Thinking about it this rings a bell. I know it behaves like described on ARM9,
> so code executing in TCM can only "see" physical memory.
> 
> But one difference between the ARM9 and ARM11 families is that the cache
> is mapped to virtual (MMU:ed) address space in ARM9 and to physical address
> space in ARM11 is it not? (Is this so already in ARM10 BTW?)
> 
> So just thinking intuitively about it, as a TCM memory is very close to what
> a cache is to the CPU I think it's something like this on ARM9:
> 
>      CPU
>      / \
> Cache   TCM
>   |      |
>  MMU     |
>   |      |
> External memory interface
> 
> But on ARM11 (ARM10?):
> 
>      CPU
>       |
>      MMU
>      / \
> Cache   TCM
>   |
> External memory interface
> 
> Is that correct more or less? Catalin would you happen to know this?
I think you are right. 

> Anyway the code should still work actually, since we make a 1-1 memory
> map anyway. But you cannot place the TCM in the memory locations I
> chose for U300 since these are occupied on ARM11.
Sorry, I haven't tried your patch at kernel, I just did experiments at u-boot.


> Linus Walleij
-- 
Best Regards
Peter Chen

      reply	other threads:[~2009-09-27  1:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-25  1:30 About ARM TCM patch Peter Chen
2009-09-25  5:04 ` Dave Hylands
2009-09-25  9:15 ` Linus Walleij
2009-09-26 21:58   ` Linus Walleij
2009-09-27  1:29     ` Peter Chen [this message]

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=1254014985.3663.2.camel@nchen-desktop \
    --to=hzpeterchen@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).