From: Kenneth Johansson <kenneth@southpole.se>
To: Scott Wood <scottwood@freescale.com>
Cc: linuxppc-dev@ozlabs.org,
Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Subject: Re: kexec on e300 core / mpc5121
Date: Thu, 06 Aug 2009 02:20:50 +0200 [thread overview]
Message-ID: <1249518050.13069.21.camel@localhost> (raw)
In-Reply-To: <20090805234737.GA26183@b07421-ec1.am.freescale.net>
On Wed, 2009-08-05 at 18:47 -0500, Scott Wood wrote:
> On Thu, Aug 06, 2009 at 12:49:45AM +0200, Kenneth Johansson wrote:
> > On Wed, 2009-08-05 at 01:06 +0200, Sebastian Andrzej Siewior wrote:
> > > I've tried kexec on e300 core which should be easy since it is possible
> > > to disable the MMU on that core. However it does not work.
> >
> > Is it not possible to disable the mmu on all cpu's that have one ??
>
> No, on e500 for example it is always on. You can use large pages with
> identity maps to make it seem like it's off, though.
why do something like that ?
> > Before you turn off the cache you need to flush out all dirty data. best
> > done by simply reading in 32kb of crap from somewhere. otherwise you are
> > sure to loose at least the stack and you do not want that.
>
> 32KiB is usually not sufficient -- depending on the initial state, an
> 8-way 32KiB cache with PLRU (such as in e300) can require up to 52KiB of
> data (13 loads per set) to fully flush if you simply load+dcbf (in
> separate passes) an arbitrary chunk of data which may already be in the
> cache.
if you have
int crap[1024*32/4] __attribute__((aligned(32)))
What will happen with the cache if you just load data into a register
from that array ?? Wont it force out everything else in the cache to
make room for the crap ?
next prev parent reply other threads:[~2009-08-06 0:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-04 23:06 kexec on e300 core / mpc5121 Sebastian Andrzej Siewior
2009-08-05 21:33 ` Sebastian Andrzej Siewior
2009-08-05 22:49 ` Kenneth Johansson
2009-08-05 23:47 ` Scott Wood
2009-08-06 0:20 ` Kenneth Johansson [this message]
2009-08-06 7:25 ` Sebastian Andrzej Siewior
2009-08-06 15:54 ` Scott Wood
2009-08-06 13:58 ` 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=1249518050.13069.21.camel@localhost \
--to=kenneth@southpole.se \
--cc=linuxppc-dev@ozlabs.org \
--cc=scottwood@freescale.com \
--cc=sebastian@breakpoint.cc \
/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).