From: David Jander <david.jander@protonic.nl>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>,
Paul Mackerras <paulus@samba.org>, Wolfgang Denk <wd@denx.de>,
Gunnar Von Boehn <gunnar@genesi-usa.com>
Subject: Re: [RFC] [PATCH v2] MPC5121 TLB errata workaround
Date: Fri, 13 Mar 2009 15:24:36 +0100 [thread overview]
Message-ID: <200903131524.36865.david.jander@protonic.nl> (raw)
In-Reply-To: <9223B51A-4340-4636-B1F8-6D49A5F8833A@kernel.crashing.org>
On Friday 13 March 2009 14:21:57 Kumar Gala wrote:
> >
>
> What does cat /proc/cpuinfo show on this board?
# cat /proc/cpuinfo
processor : 0
cpu : e300c4
clock : 400.000000MHz
revision : 1.0 (pvr 8086 2010)
bogomips : 99.84
timebase : 50000000
platform : MPC5121 Generic
> > +#ifdef CONFIG_PPC_MPC512x
> > +/* MPC512x: workaround for errata in die M36P and earlier:
> > + * Implement LRW for TLB way.
> > + */
>
> This errata impacts a number of cores and so we should make this a CPU
> feature fixup rather than #ifdef code.
It should impact only MPC5121e and probably MPC5123, but according to
Freescale no other processors that use this core...
Anyway, I'll try to investigate about how to write a "CPU feature fixup",
I've never done that before (If you could give me a hint?)
> > + mfspr r3,SPRN_DMISS
> > + rlwinm r3,r3,19,25,29 /* Get Address bits 19:15 */
> > + lis r2,lrw@ha /* Search index in lrw[] */
> > + addi r2,r2,lrw@l
> > + tophys(r2,r2)
> > + lwzx r1,r3,r2 /* Get item from lrw[] */
> > + cmpwi 0,r1,0 /* Was it way 0 last time? */
>
> Why not use a bit vector since we only need one bit of information.
> Additionally we can use a single SPRG at that point instead to keep
> track of the LRU information.
Sounds interesting. I am just learning my first steps in powerpc-assembly, so
please forgive if this is a little inefficient still. I'll try again next week.
Greetings,
--
David Jander
Protonic Holland.
next prev parent reply other threads:[~2009-03-13 14:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-13 10:20 [RFC] [PATCH v2] MPC5121 TLB errata workaround David Jander
2009-03-13 10:26 ` David Jander
2009-03-13 13:22 ` Kumar Gala
2009-03-13 14:16 ` David Jander
2009-03-13 13:21 ` Kumar Gala
2009-03-13 14:24 ` David Jander [this message]
2009-03-13 15:23 ` Kumar Gala
2009-03-16 10:44 ` David Jander
2009-03-16 11:41 ` Kumar Gala
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=200903131524.36865.david.jander@protonic.nl \
--to=david.jander@protonic.nl \
--cc=galak@kernel.crashing.org \
--cc=gunnar@genesi-usa.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
--cc=wd@denx.de \
/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).