android_kernel_xiaomi_sm8350/arch/powerpc/platforms
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
..
4xx
8xx
83xx powerpc: converted embedded platforms to use new define_machine support 2006-03-30 23:39:57 -06:00
85xx Add 85xx CDS to arch/powerpc 2006-04-04 16:09:18 -05:00
86xx [POWERPC] Remove obsolete #include <linux/config.h>. 2006-06-28 11:52:22 +10:00
apus
cell [POWERPC] spufs: fix MFC command queue purge 2006-06-28 11:59:48 +10:00
chrp powerpc: Fix CHRP booting - needs a define_machine call 2006-04-05 16:01:45 +10:00
embedded6xx [PATCH] powerpc: Updated Kconfig and Makefiles for 83xx support 2006-01-11 15:35:29 +11:00
iseries [POWERPC] powerpc: Initialise ppc_md htab pointers earlier 2006-06-28 11:59:47 +10:00
maple [POWERPC] powerpc: Initialise ppc_md htab pointers earlier 2006-06-28 11:59:47 +10:00
powermac [POWERPC] powerpc: Initialise ppc_md htab pointers earlier 2006-06-28 11:59:47 +10:00
prep
pseries [POWERPC] powerpc: Initialise ppc_md htab pointers earlier 2006-06-28 11:59:47 +10:00
Makefile [POWERPC] Add the mpc8641 hpcn Kconfig and Makefiles. 2006-06-21 15:01:27 +10:00