linux/arch/powerpc/platforms/cell/spufs
Benjamin Herrenschmidt 910ab66b1c [POWERPC] spufs: fix MFC command queue purge
In the context save/restore code, the SPU MFC command queue purge
code has a bug:

static inline void wait_purge_complete(struct spu_state *csa, struct
				       spu *spu)
{
    struct spu_priv2 __iomem *priv2 = spu->priv2;

    /* Save, Step 28:
     *     Poll MFC_CNTL[Ps] until value '11' is
     *     read
     *      (purge complete).
     */
    POLL_WHILE_FALSE(in_be64(&priv2->mfc_control_RW)
		     & MFC_CNTL_PURGE_DMA_COMPLETE);
}

This will exit as soon as _one_ of the 2 bits that compose
MFC_CNTL_PURGE_DMA_COMPLETE is set, and one of them happens to be
"purge in progress"...  which means that we'll happily continue
restoring the MFC while it's being purged at the same time.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-06-28 11:59:48 +10:00
..
backing_ops.c [PATCH] spufs: implement mfc access for PPE-side DMA 2006-03-27 14:48:26 +11:00
context.c [PATCH] powerpc: cell: use kzalloc in alloc_spu_context() 2006-04-29 18:08:03 +10:00
file.c [POWERPC] spufs: map mmio space as guarded into user space 2006-06-28 11:59:48 +10:00
hw_ops.c [POWERPC] spufs: further abstract priv1 register access 2006-06-21 15:01:31 +10:00
inode.c [PATCH] VFS: Permit filesystem to override root dentry on mount 2006-06-23 07:42:45 -07:00
Makefile [POWERPC] spufs: one more fix for 64k pages 2006-06-21 15:01:32 +10:00
run.c [PATCH] powerpc/cell: compile fixes 2006-04-01 22:37:14 +11:00
sched.c [POWERPC] spufs: fix spu irq affinity setting 2006-06-21 15:01:31 +10:00
spu_restore_crt0.S [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_restore_dump.h_shipped [POWERPC] spufs: one more fix for 64k pages 2006-06-21 15:01:32 +10:00
spu_restore.c [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_save_crt0.S [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_save_dump.h_shipped [POWERPC] spufs: one more fix for 64k pages 2006-06-21 15:01:32 +10:00
spu_save.c [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_utils.h [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spufs.h [PATCH] spufs: enable SPE problem state MMIO access. 2006-03-27 14:48:28 +11:00
switch.c [POWERPC] spufs: fix MFC command queue purge 2006-06-28 11:59:48 +10:00
syscalls.c [PATCH] powerpc: cell namespace cleanup 2006-01-12 20:39:14 +11:00