[POWERPC] spufs: handle faults while the context switch pending flag is set
authorLuke Browning <lukebr@linux.vnet.ibm.com>
Mon, 28 Apr 2008 07:35:56 +0000 (17:35 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 5 May 2008 03:33:44 +0000 (13:33 +1000)
commitde1028927ae3487e2e450dacf50fbf32042aee18
tree615b7c5fa3526ccf11b63be88c8978180df0bee8
parentf3d69e0507f84903059d456c5d19f10b2df3ac69
[POWERPC] spufs: handle faults while the context switch pending flag is set

Currently, page fault handlers don't issue a mfc restart if the context
switch pending flag is set, which can leave us with a hanging DMA after
a context restore.

This patch introduces fault pending flag that is set by the fault
handler and read by the context switch code, so that the latter can add
the restart bit at the right spot, after it has successfuly saved the
state of the mfc control register.

Signed-off-by: Luke Browning <lukebr@linux.vnet.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spu_base.c
arch/powerpc/platforms/cell/spufs/switch.c
include/asm-powerpc/spu.h