]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] spufs: Update SPU_Status[CISHP] in backing runcntl write
authorMasato Noguchi <Masato.Noguchi@jp.sony.com>
Fri, 8 Feb 2008 04:50:41 +0000 (15:50 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 8 Feb 2008 08:52:35 +0000 (19:52 +1100)
commit732377c5f5335e227171c76532613f45b4067f25
treee0e40dea216d78612518de311880fca9495de71a
parenteebead5b8ff89340dc18ceec996157d0eb7d0287
[POWERPC] spufs: Update SPU_Status[CISHP] in backing runcntl write

Currently, the kernel may fail to restart a SPE context which
has stopped and been swapped out.

This changes spu_backing_runcntl_write to emulate the real
SPU_Status register exactly.  When the SPU Run Control register
is written with SPU_RunCntl[Run] set to '1', the physical SPU
automatically sets SPU_Status[R] and clears SPU_Status[CISHP].

Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/backing_ops.c