linux/arch/powerpc/platforms/cell
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
..
spufs [POWERPC] spufs: fix MFC command queue purge 2006-06-28 11:59:48 +10:00
cbe_regs.c [PATCH] more for_each_cpu() removal 2006-06-25 10:00:54 -07:00
cbe_regs.h [POWERPC] cell: add RAS support 2006-06-21 15:01:29 +10:00
interrupt.c [PATCH] remove for_each_cpu() 2006-06-25 10:00:54 -07:00
interrupt.h [PATCH] powerpc: cell interrupt controller updates 2006-03-27 14:48:18 +11:00
iommu.c [POWERPC] cleanup dma_mapping_ops 2006-06-15 19:31:26 +10:00
iommu.h [PATCH] powerpc: move arch/ppc64/kernel/bpa* to arch/powerpc/platforms/cell 2005-11-01 21:03:07 +11:00
Kconfig [POWERPC] spufs: split the Cell BE support into generic and platform dependant parts 2006-06-21 15:01:31 +10:00
Makefile [POWERPC] spufs: split the Cell BE support into generic and platform dependant parts 2006-06-21 15:01:31 +10:00
pervasive.c [POWERPC] cell: add RAS support 2006-06-21 15:01:29 +10:00
pervasive.h [POWERPC] cell: add RAS support 2006-06-21 15:01:29 +10:00
ras.c [POWERPC] cell: add RAS support 2006-06-21 15:01:29 +10:00
ras.h [POWERPC] cell: add RAS support 2006-06-21 15:01:29 +10:00
setup.c [POWERPC] Enable the RTAS udbg console on IBM Cell Blade 2006-06-28 11:59:48 +10:00
smp.c [PATCH] powerpc: task_thread_info() 2006-01-12 09:08:57 -08:00
spider-pic.c [PATCH] powerpc: use guarded ioremap for cell on-chip mappings 2006-03-27 14:48:42 +11:00
spu_base.c [POWERPC] spufs: clear class2 interrupt status before wakeup 2006-06-21 15:01:32 +10:00
spu_callbacks.c [POWERPC] Unify ppc syscall tables 2006-06-21 15:01:32 +10:00
spu_priv1_mmio.c [POWERPC] spufs: fix spu irq affinity setting 2006-06-21 15:01:31 +10:00
spu_syscalls.c [PATCH] spufs: fix module refcount race 2006-01-09 14:53:11 +11:00