All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: linuxppc-embedded@ozlabs.org
Subject: MPC885 hang in a lwarx/stwcx insn crossing a page boundary
Date: Tue, 24 Apr 2007 07:55:47 +0200	[thread overview]
Message-ID: <1177394147.6353.30.camel@Zeus.EmbLux> (raw)

Hello,

I have a MPC885 and a running 2.6.16 kernel on it. I use the CPU15
Errata Patch from
(http://ozlabs.org/pipermail/linuxppc-dev/2007-April/033789.html)

Now if a lwarx/stwcx insn crossing a page boundary, the CPU hangs in
an endless loop, because the reservation allocated from the lwarx gets
cleared in the case of a tlb miss. And the CPU15 workaround invalidates
the tlbs around the page we're faulting in, so we cause a nasty infinite
loop. I started a service request at Freescale, and they are searching
why a tlbie clears the reservation or under which circumstances this
appears.

Without the CPU15 Errata patch it runs fine, but i can reproduce the
CPU15 Bug, so I need the or some CPU15 Errata patch ...

I also have a running 2.4.24-pre2 Kernel on this board, with the same
CPU15 Errata patch, and there the hang doesnt occur!! Some ideas where
the differences between 2.4.24-pre2 and 2.6.16 are?

I also didnt get this hang in userspace with the 2.6.16er Kernel.

So I see at the moment the following possibilities:

a) patching the gcc, so that the CPU15 Errata is no more necessary
   My favorit.

b) upgrade the CPU15 Bug like in the MPC885 Errata Sheet from Freescale
   (I think this is to much code for in an Exceptionhandler ...)

c) I made before every lwarcx a ".align" so that the insn is on one
   page. This is actually running without seeing problems on the board.
   But it is a "errata" for the "errata" ...

d) ...

Some suggestions, ideas? Especially, why the hang doesnt occur with a
2.4.24-pre2 kernel?

thanks
Heiko
-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany

             reply	other threads:[~2007-04-24  5:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-24  5:55 Heiko Schocher [this message]
2007-04-24 10:06 ` MPC885 hang in a lwarx/stwcx insn crossing a page boundary Joakim Tjernlund

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=1177394147.6353.30.camel@Zeus.EmbLux \
    --to=hs@denx.de \
    --cc=linuxppc-embedded@ozlabs.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 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.