public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Using 8 Instruction and Data BAT registers in 82xx
@ 2004-01-26 18:29 Dave Johnson
  2004-01-27 17:18 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Johnson @ 2004-01-26 18:29 UTC (permalink / raw)
  To: cort, linux-kernel, linuxppc-dev, linuxppc-embedded

Hi All:
As there are 8 data and Instruction BAT registers in
some 82xx flavors, and Cort has posted a patch to ADD
these registers
(http://www.ussg.iu.edu/hypermail/linux/kernel/0209.1/0871.html)
I was wondering if anyone has any idea how to use
these addistional BAT regs be used?? Perhaps for new
processes and threads, etc. 

Dave..

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Using 8 Instruction and Data BAT registers in 82xx
  2004-01-26 18:29 Using 8 Instruction and Data BAT registers in 82xx Dave Johnson
@ 2004-01-27 17:18 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2004-01-27 17:18 UTC (permalink / raw)
  To: Dave Johnson; +Cc: cort, linux-kernel, linuxppc-dev

On Mon, Jan 26, 2004 at 10:29:41AM -0800, Dave Johnson wrote:
> 
> Hi All:
> As there are 8 data and Instruction BAT registers in
> some 82xx flavors, and Cort has posted a patch to ADD
> these registers
> (http://www.ussg.iu.edu/hypermail/linux/kernel/0209.1/0871.html)
> I was wondering if anyone has any idea how to use
> these addistional BAT regs be used?? Perhaps for new
> processes and threads, etc.

Step one would be to audit the usages of the 8_BATS feature to ensure
that they'll be fine if invoked on an 82xx with 8 BATS.  It's almost
certainly going to be true, but should still be done.

Step two would be to distinguish the 82xx's with 8 BATs from the ones
that don't.  I don't know if these have a different PVR, but I hope they
do, otherwise it'll be harder (but not impossible certainly) to.

Finally, as you've probably surmised, all that we do with these
additional BATs is to clear them out.  It could be possible to extend
io_block_mapping to make use of these additional BATs (and
v_mapped_by_bats/p_mapped_by_bats, etc).

Trying to do processes and/or threads (i.e. userland stuff) becomes a
giant pain (per-context BAT mappings have to be tracked), there's lots
of security implications to keep in mind, and of course the overhead of
doing all of this will probably cancel out any speed gain you would have
otherwise gotten.

-- 
Tom Rini
http://gate.crashing.org/~trini/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-27 22:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-26 18:29 Using 8 Instruction and Data BAT registers in 82xx Dave Johnson
2004-01-27 17:18 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox