Fix breakage caused by tlb flush batch changes
benh at kernel.crashing.org
Wed Apr 18 17:39:52 EST 2007
On Wed, 2007-04-18 at 16:19 +1000, David Gibson wrote:
> BenH's commit a741e67969577163a4cfc78d7fd2753219087ef1 in powerpc.git,
> although (AFAICT) only intended to affect ppc64, also has side-effects
> which break 44x. I think 40x, 8xx and Freescale Book E are also
> affected, though I haven't tested them.
> The problem lies in unconditionally removing flush_tlb_pending() from
> the versions of flush_tlb_mm(), flush_tlb_range() and
> flush_tlb_kernel_range() used on ppc64 - which are also used the
> embedded platforms mentioned above.
> The patch below restores the necessary flushes and fixes the breakage
> for 44x. They should also fix any breakage for the other platforms,
> but again I haven't tested those.
Damn, do these things use a batch at all ? If not, they should defkine
the whole set a functions separately rather than ifdef's like that...
flush_tlb_pending is a bad name for that.
More information about the Linuxppc-dev