From: Scott Wood <scottwood@freescale.com>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>,
Rex Feany <RFeany@mrv.com>
Subject: Re: [PATCH 0/8] 8xx: Misc fixes for buggy insn
Date: Mon, 9 Nov 2009 17:00:04 -0600 [thread overview]
Message-ID: <20091109230004.GA24671@loki.buserror.net> (raw)
In-Reply-To: <20091109215321.GA4351@loki.buserror.net>
On Mon, Nov 09, 2009 at 03:53:21PM -0600, Scott Wood wrote:
> On Fri, Nov 06, 2009 at 10:29:44AM +0100, Joakim Tjernlund wrote:
> > > > With this, the kernel hangs after "Mount-cache hash table entries: 512".
> > >
> > > Somewhat surprising result. I didn't expect you would even hit this
> > > condition now as we haven't enabled the use of dcbX insn yet.
> > > The only thing I can think of is the you hit the 0x00f0 due to other
> > > dcbX insn use and the kernel managed to fixup this in the page fault handler
> > > by pure luck before.
>
> It's bizarre -- it still happens even if I revert the branch to FixupDAR.
> However, if I comment out the final "b 151b", it stops happening. It also
> stops happening sometimes depending on where I stick printk()s to debug
> this.
>
> So it may be an unrelated issue that just got perturbed somehow.
OK, figured it out. The fixup code pushed things around so that in
syscall_exit_cont, SRR0/SRR1 were being loaded immediately prior to a page
boundary, with the rfi after the page boundary. On crossing the boundary,
we take an ITLB miss (which goes from possibility to certainty with the
CPU15 workaround), and SRR0/SRR1 get clobbered.
I suppose we'll need to find all places where we do rfi with the MMU
enabled, and ensure acceptable alignment. :-(
Either that, or require that the kernel text be pinned, though that does not
interact well with CPU15.
-Scott
next prev parent reply other threads:[~2009-11-10 7:00 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 13:38 [PATCH 0/8] 8xx: Misc fixes for buggy insn Joakim Tjernlund
2009-11-04 13:38 ` [PATCH 1/8] 8xx: invalidate non present TLBs Joakim Tjernlund
2009-11-04 13:38 ` [PATCH 2/8] 8xx: Update TLB asm so it behaves as linux mm expects Joakim Tjernlund
2009-11-04 13:38 ` [PATCH 3/8] 8xx: Tag DAR with 0x00f0 to catch buggy instructions Joakim Tjernlund
2009-11-04 13:38 ` [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions Joakim Tjernlund
2009-11-04 13:38 ` [PATCH 5/8] 8xx: Add missing Guarded setting in DTLB Error Joakim Tjernlund
2009-11-04 13:38 ` [PATCH 6/8] 8xx: Restore _PAGE_WRITETHRU Joakim Tjernlund
2009-11-04 13:38 ` [PATCH 7/8] 8xx: start using dcbX instructions in various copy routines Joakim Tjernlund
2009-11-04 13:38 ` [PATCH 8/8] 8xx: Remove DIRTY pte handling in DTLB Error Joakim Tjernlund
2009-11-06 0:33 ` [PATCH 0/8] 8xx: Misc fixes for buggy insn Scott Wood
2009-11-06 8:01 ` Joakim Tjernlund
2009-11-06 9:29 ` Joakim Tjernlund
[not found] ` <20091109215321.GA4351@loki.buserror.net>
2009-11-09 23:00 ` Scott Wood [this message]
2009-11-10 8:27 ` Joakim Tjernlund
2009-11-10 16:36 ` Scott Wood
2009-11-10 16:55 ` Scott Wood
2009-11-10 19:08 ` Joakim Tjernlund
[not found] ` <4AF9CC99.1030500@freescale.com>
2009-11-10 21:25 ` Joakim Tjernlund
[not found] ` <4AF9DCE0.4030805@freescale.com>
2009-11-10 21:47 ` Joakim Tjernlund
2009-11-10 22:02 ` Scott Wood
2009-11-10 23:15 ` Joakim Tjernlund
2009-11-10 23:21 ` Scott Wood
2009-11-11 0:06 ` Joakim Tjernlund
2009-11-11 15:26 ` Scott Wood
2009-11-12 9:10 ` Joakim Tjernlund
2009-11-12 19:45 ` Scott Wood
2009-11-12 21:14 ` Joakim Tjernlund
2009-11-12 21:57 ` Scott Wood
2009-11-12 23:29 ` Joakim Tjernlund
2009-11-13 19:25 ` Scott Wood
2009-11-14 14:11 ` Joakim Tjernlund
2009-11-10 19:54 ` Joakim Tjernlund
[not found] ` <4AF9C647.50600@freescale.com>
2009-11-10 21:05 ` 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=20091109230004.GA24671@loki.buserror.net \
--to=scottwood@freescale.com \
--cc=RFeany@mrv.com \
--cc=joakim.tjernlund@transmode.se \
--cc=linuxppc-dev@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 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).