public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Romain Goyet <r.goyet@gmail.com>
Cc: OMAP Linux mailing list <linux-omap-open-source@linux.omap.com>
Subject: Re: Some comments on Linux-OMAP tree by Russell King
Date: Fri, 30 Dec 2005 14:17:33 -0800	[thread overview]
Message-ID: <20051230221733.GI4415@atomide.com> (raw)
In-Reply-To: <8028e5750512140625n161c5c34u@mail.gmail.com>

Hi,

Back from vacation now.

* Romain Goyet <r.goyet@gmail.com> [051214 06:26]:
> 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 ?

I'll take a look at it. The omap specific init could use some clean up.
 
> 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.

Yeah, we should clean up the MMC driver and send it upstream. There are
some buggy card fixes for mmc.c that should also be sent upstream.

Regards,

Tony

  reply	other threads:[~2005-12-30 22:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-14 14:25 Some comments on Linux-OMAP tree by Russell King Romain Goyet
2005-12-30 22:17 ` Tony Lindgren [this message]
  -- 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=20051230221733.GI4415@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-omap-open-source@linux.omap.com \
    --cc=r.goyet@gmail.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