public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Romain Goyet <r.goyet@gmail.com>
To: OMAP Linux mailing list <linux-omap-open-source@linux.omap.com>
Subject: Some comments on Linux-OMAP tree by Russell King
Date: Wed, 14 Dec 2005 15:25:34 +0100	[thread overview]
Message-ID: <8028e5750512140625n161c5c34u@mail.gmail.com> (raw)

Hello guys,
  I've had recently many problems on my Palm Tungsten E. In
particular, it was crashing when I ran "local_flush_tlb_all()", in
arch/arm/mm/init.c. I asked for help on the ARM-Linux mailing list,
and here is what Russell finally told me :

> Argh, omap sets up a mapping and then immediately tries to access
> IO space.  If some of the cache lines for the page tables were already
> in the cache, or you are using a write-alloc cache, that's not going
> to work - the mappings will not be visible to the MMU.  Note carefully
> the comment:
>
>       /*
>        * Finally flush the caches and tlb to ensure that we're in a
>        * consistent state wrt the writebuffer.  This also ensures that
>        * any write-allocated cache lines in the vector page are written
>        * back.  After this point, we can start to touch devices again.
>        */
>
> and omap is accessing devices _prior_ to that point. 8(
>
> This is most likely the reason why you're seeing boot failures.

What do you think about this ? In particular, I think he is talking about this :
in arch/arm/mach-omap1/io.c

        /* We have to initialize the IO space mapping before we can run
         * cpu_is_omapxxx() macros. */

This is true, but we have to wait _as well_ that
mm/init.c:devicemaps_init() has terminated. I would have proposed a
patch, but it looks like many functions, like
omap_sram_init();
and
omap1_clk_init();
Use cpu_is_omapXXXX() functions.

Do you have any idea for a workaround ?

Thanks in advance

Romain Goyet.


By the way, Russell also added this :

> Hmm, I notice that omap folk are _still_ buggering up the MMC core in
> relation to mmc.c.  It'd also be nice of omap folk could conform to
> the agreed usage of clk_use/unuse vs clk_enable/disable as documented
> in the header file.  The clock framework *relies* on everyone following
> the rules.  Frustrated sigh.

             reply	other threads:[~2005-12-14 14:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-14 14:25 Romain Goyet [this message]
2005-12-30 22:17 ` Some comments on Linux-OMAP tree by Russell King Tony Lindgren
  -- strict thread matches above, loose matches on Subject: below --
2005-12-14 19:37 Dirk Behme

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=8028e5750512140625n161c5c34u@mail.gmail.com \
    --to=r.goyet@gmail.com \
    --cc=linux-omap-open-source@linux.omap.com \
    /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