Discussion about iopa()

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Feb 10 13:37:01 EST 2007


On Fri, 2007-02-09 at 12:08 -0500, Dan Malek wrote:
> On Feb 8, 2007, at 8:41 AM, Timur Tabi wrote:
> 
> > Walking the page table is slower than using pointer math, so you  
> > want to
> > avoid iopa() if you can.
> 
> Big deal.  With all of the other kernel bloat
> going on you want to argue about a couple
> of memory accesses?  :-)

We are fairly careful about not bloating fast path in general. It's more
than a couple of memory accesses, especially with PTEs in highmem where
it involves kmap.

Ben.





More information about the Linuxppc-dev mailing list