[POWERPC] spufs: serialize SLB invalidation against SLB loading
authorArnd Bergmann <arnd@arndb.de>
Thu, 28 Feb 2008 05:06:30 +0000 (06:06 +0100)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 29 Feb 2008 04:19:52 +0000 (15:19 +1100)
commitc92a1acb675058375cc508ad024c33358b42d766
tree2860b1e74c48d09b12ea8b103366e6db0658fdfb
parentcc4b7c1814c9ad375e8167ea4a9ec4a0ec1ada04
[POWERPC] spufs: serialize SLB invalidation against SLB loading

There is a potential race between flushes of the entire SLB in the MFC
and the point where new entries are being established. The problem is
that we might put a ESID entry into the MFC SLB when the VSID entry has
just been cleared by the global flush.

This can be circumvented by holding the register_lock throughout both
the flushing and the creation of SLB entries.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spu_base.c