Improved copy_page() function, about 30% speed up for mpc860!

Dan Malek dan at
Tue Mar 4 11:51:42 EST 2003

Benjamin Herrenschmidt wrote:

> If you know precisely what version of the chip has this bug fixed,
> then you can define a CPU feature bit, and enclose the dcbz in
> a CPU feature conditional section. That way, they will get nop'ed
> out on faulty CPUs.

The problem is we don't know because it was never a documented
problem.  It was very difficult to find, so I'm not surprised it
didn't always show up on the silicon errata.  Further, there may
not be enough information in the cpu identification registers to
determine this level of silicon revision.

We just can't nop the dcbz, we have to add explicit instructions
to perform the function if dcbz or other cache instructions don't
work properly.  It's also in an area where we have to be sensitive
to cache utilization.  We could end up with a situation where there
are lots of nops (using cpu features) or branches where reloading
the i-cache could kill all of the optimization we gained by making
the d-cache more efficient.


	-- Dan

** Sent via the linuxppc-dev mail list. See

More information about the Linuxppc-dev mailing list