linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC/PATCH 0/3] Attempt at making 32bit BAT assignment more intelligent
@ 2008-08-06  6:02 Grant Likely
  2008-08-06  6:02 ` [RFC/PATCH 1/3] powerpc: add ioremap_bat() function for setting up BAT translated IO regions Grant Likely
                   ` (2 more replies)
  0 siblings, 3 replies; 48+ messages in thread
From: Grant Likely @ 2008-08-06  6:02 UTC (permalink / raw)
  To: linuxppc-dev, benh, paulus, galak, jwboyer; +Cc: miltonm

Here is my attempt to make BAT allocations dynamic instead of hard coded.
The first patch changes setbat() to dynamically assign BATs instead of requiring
the caller to select a BAT on its own.

A primary user of setbat is mmu_mapin_ram() which used to hard code BATs
2 and 3 for mapping as much of RAM as can fit in 2 BATs.  The first patch
changes the routine to try to use as many BATs as it needs to map all of RAM.
(Note: I've still got BAT0 reserved for mapping RAM, so even if lots of other
users of setbat() appear, RAM is guaranteed to be allocated at least 1 BAT).

The first patch also adds an ioremap_bat() function which works like
ioremap(), but uses BATs instead of page tables and can be called really
early (before MMU_init()).  ioremap_bat() mappings persist after MMU_init
is called too so it can be used to map all of an SoC's IMMR region, or
any other IO device for that matter.  I've seen about a 2.5% performance
improvement by using this on a simple network workload with SoC registers
BAT mapped.

The second patch is just a utility function required by the third patch.

The third patch is a new user of ioremap_bat() to implement early debug
support for the mpc5200 platform.

The first patch is the one I really want feedback on.  It shouldn't break
any 32 bit platforms, but I need testing to make sure.  Also, this is my
first attempt at messing with MMU code, so please let me know if I'm doing
anything foolish or dangerous.

Kumar, Josh; I'd appreciate testing to make sure patch 1 doesn't break stuff.

Thanks,
g.

--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.

^ permalink raw reply	[flat|nested] 48+ messages in thread
* Re: [RFC/PATCH 2/3] of: add of_lookup_stdout() utility function
@ 2008-08-07 19:20 Milton Miller
  2008-08-07 19:22 ` Timur Tabi
  0 siblings, 1 reply; 48+ messages in thread
From: Milton Miller @ 2008-08-07 19:20 UTC (permalink / raw)
  To: Timur Tabi, Yoder Stuart
  Cc: linuxppc-dev, devicetree-discuss, paulus, miltonm, David Gibson

TimurTabi wrote:
> Yoder Stuart wrote:
> 
> > The second was the idea that we may need a
> > /aliases/stdin as well. You could conceptually have
> > stdout be a monitor and a stdin be a keyboard.
> 
> I don't think the hypervisor console subsystem supports
> this.  I don't see any way of registering separate clients
> for input vs. output.

Why should what the hvc driver support have any effect on
what the binding should be?

And anyways, both the boot wrapper and udbg (and hence early
debug console) have totally indepenedent functions for
reading and writing.  

And for that matter, we also support output on monitor and
input on keyboard for linear frame buffer on 6xx via the
btext output (but only adb input).

milton

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

end of thread, other threads:[~2008-08-13 14:33 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06  6:02 [RFC/PATCH 0/3] Attempt at making 32bit BAT assignment more intelligent Grant Likely
2008-08-06  6:02 ` [RFC/PATCH 1/3] powerpc: add ioremap_bat() function for setting up BAT translated IO regions Grant Likely
2008-08-06 14:07   ` Kumar Gala
2008-08-06 21:54     ` Grant Likely
2008-08-06 22:11       ` Kumar Gala
2008-08-06 22:28         ` Benjamin Herrenschmidt
2008-08-06 22:55           ` Brad Boyer
2008-08-06 23:11           ` Grant Likely
2008-08-07  1:49           ` Kumar Gala
2008-08-07 22:13             ` Benjamin Herrenschmidt
2008-08-08  0:04               ` Kumar Gala
2008-08-12 19:50                 ` Grant Likely
2008-08-06 22:31         ` Scott Wood
2008-08-06 23:02         ` Grant Likely
2008-08-07  1:52           ` Kumar Gala
2008-08-06 22:26   ` Benjamin Herrenschmidt
2008-08-06 23:11     ` Grant Likely
2008-08-07 16:45       ` Scott Wood
2008-08-07 18:21         ` Kumar Gala
2008-08-07 22:09       ` Benjamin Herrenschmidt
2008-08-06  6:02 ` [RFC/PATCH 2/3] of: add of_lookup_stdout() utility function Grant Likely
2008-08-06  6:14   ` Michael Ellerman
2008-08-06  6:34     ` Grant Likely
2008-08-06  7:42       ` Stephen Rothwell
2008-08-06  7:44         ` David Miller
2008-08-06  7:57         ` Stephen Rothwell
2008-08-06  6:32   ` David Miller
2008-08-06  6:35     ` Grant Likely
2008-08-06  7:19       ` David Miller
2008-08-07 22:37       ` Benjamin Herrenschmidt
2008-08-06 10:21     ` Paul Mackerras
2008-08-06 10:52       ` David Miller
2008-08-06 13:31       ` Grant Likely
2008-08-06 16:25         ` Segher Boessenkool
2008-08-06 17:09           ` Mitch Bradley
2008-08-07  0:40           ` David Gibson
2008-08-07 22:35         ` Benjamin Herrenschmidt
2008-08-06 16:46   ` Timur Tabi
2008-08-07  6:12     ` David Gibson
2008-08-07 17:28       ` Yoder Stuart
2008-08-07 18:11         ` Timur Tabi
2008-08-13  5:41       ` Grant Likely
2008-08-13 14:32         ` Timur Tabi
2008-08-07 22:36     ` Benjamin Herrenschmidt
2008-08-06  6:02 ` [RFC/PATCH 3/3] powerpc/52xx: add udbg and early debug support for PSC serial console Grant Likely
  -- strict thread matches above, loose matches on Subject: below --
2008-08-07 19:20 [RFC/PATCH 2/3] of: add of_lookup_stdout() utility function Milton Miller
2008-08-07 19:22 ` Timur Tabi
2008-08-07 19:38   ` Scott Wood

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).