From: Marcelo Tosatti <marcelo@kvack.org>
To: Dan Malek <dan@embeddededge.com>
Cc: David Jander <david.jander@protonic.nl>, linuxppc-embedded@ozlabs.org
Subject: Re: Linux 2.6 sources for MPC852T processor
Date: Sun, 30 Apr 2006 13:53:25 -0300 [thread overview]
Message-ID: <20060430165325.GB4631@dmt> (raw)
In-Reply-To: <0606BE3C-7751-4E71-B724-FEFE2FF252C8@embeddededge.com>
On Wed, Apr 26, 2006 at 07:32:13PM -0400, Dan Malek wrote:
>
> On Apr 26, 2006, at 7:50 AM, David Jander wrote:
>
> > Yes, MPC852T is supported, although I might add that I have been
> > using 2.6.14
> > and 2.6.15 sucessfully with our own MPC852T-based board, but 2.6.16
> > did not
> > boot and as of today I don't know why, or whether this is an issue
> > at all
> > with boards other than ours.
>
> There is a horrible bug in the 8xx TLB miss handler that is in the
> 2.6.16
> sources. I don't know when it appeared. Enable the CPU6 Errata
> workaround to see if that solves the problem and please report back
> to me. I'm working on a solution.
Hi Dan,
Shame on me! I screwed up.
David, can you please try the following patch on top of vanilla v2.6.16?
The large TLB change introduced in v2.6.16 (which is broken as is for
configurations without CPU6 errata enabled as Dan noted) should boost
performance significantly, so you might want to rerun the lmbench
tests...
diff --git a/arch/ppc/kernel/head_8xx.S b/arch/ppc/kernel/head_8xx.S
index ec53c7d..7a2f205 100644
--- a/arch/ppc/kernel/head_8xx.S
+++ b/arch/ppc/kernel/head_8xx.S
@@ -355,9 +355,7 @@ #endif
. = 0x1200
DataStoreTLBMiss:
-#ifdef CONFIG_8xx_CPU6
stw r3, 8(r0)
-#endif
DO_8xx_CPU6(0x3f80, r3)
mtspr SPRN_M_TW, r10 /* Save a couple of working registers */
mfcr r10
@@ -417,9 +415,7 @@ #endif
lwz r11, 0(r0)
mtcr r11
lwz r11, 4(r0)
-#ifdef CONFIG_8xx_CPU6
lwz r3, 8(r0)
-#endif
rfi
/* This is an instruction TLB error on the MPC8xx. This could be due
next prev parent reply other threads:[~2006-04-30 17:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-26 9:50 Linux 2.6 sources for MPC852T processor Chandrasekhar Nagaraj
2006-04-26 11:50 ` David Jander
2006-04-26 23:32 ` Dan Malek
2006-04-27 10:41 ` David Jander
2006-04-30 16:53 ` Marcelo Tosatti [this message]
2006-05-01 7:14 ` David Jander
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=20060430165325.GB4631@dmt \
--to=marcelo@kvack.org \
--cc=dan@embeddededge.com \
--cc=david.jander@protonic.nl \
--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 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).