Skip to content
Commit 94b2a439 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Arnd Bergmann
Browse files

[POWERPC] Fix spu SLB invalidations



The SPU code doesn't properly invalidate SPUs SLBs when necessary,
for example when changing a segment size from the hugetlbfs code. In
addition, it saves and restores the SLB content on context switches
which makes it harder to properly handle those invalidations.

This patch removes the saving & restoring for now, something more
efficient might be found later on. It also adds a spu_flush_all_slbs(mm)
that can be used by the core mm code to flush the SLBs of all SPEs that
are running a given mm at the time of the flush.

In order to do that, it adds a spinlock to the list of all SPEs and move
some bits & pieces from spufs to spu_base.c

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 50b520d4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment