[Cbe-oss-dev] [RFC 1/3] powerpc: __copy_tofrom_user tweaked for Cell
Sanjay Patel
sanjay3000 at yahoo.com
Sat Jun 21 09:44:55 EST 2008
--- On Fri, 6/20/08, Benjamin Herrenschmidt <benh at kernel.crashing.org> wrote:
> I though OS X had a trick with a CR bit that would disable
> the dcbz optimization on the first alignment fault ? Or did they
> totally remove it ?
Ah, it's coming back to me. :)
Apple added 'dcbz', removed it, and then there was the clever trick of optimizing the code path with a boot-time perf test and/or changing the code on the first fault...I'm not sure what's implemented in the recent builds.
If Linux can do something similar, that should allow good perf on cacheable and cache-inhibited space as well as different CPUs (eg, if 'dcba' is available, then you don't need the alignment fault hack).
--Sanjay
More information about the cbe-oss-dev
mailing list