android_kernel_xiaomi_sm8350/arch/powerpc/platforms/ps3
Masato Noguchi c25620d766 [POWERPC] cell: wrap master run control bit
Add platform specific SPU run control routines to the spufs.  The current
spufs implementation uses the SPU master run control bit (MFC_SR1[S]) to
control SPE execution, but the PS3 hypervisor does not support the use of
this feature.

This change adds the run control wrapper routies spu_enable_spu() and
spu_disable_spu().  The bare metal routines use the master run control
bit, and the PS3 specific routines use the priv2 run control register.

An outstanding enhancement for the PS3 would be to add a guard to check
for incorrect access to the spu problem state when the spu context is
disabled.  This check could be implemented with a flag added to the spu
context that would inhibit mapping problem state pages, and a routine
to unmap spu problem state pages.  When the spu is enabled with
ps3_enable_spu() the flag would be set allowing pages to be mapped,
and when the spu is disabled with ps3_disable_spu() the flag would be
cleared and mapped problem state pages would be unmapped.

Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-12-21 19:45:05 +11:00
..
device-init.c [POWERPC] PS3: Enhance storage probe debug output 2007-09-14 01:33:26 +10:00
exports.c [POWERPC] ps3: add lv1 hvcalls 2006-12-04 20:40:44 +11:00
htab.c [POWERPC] Use 1TB segments 2007-10-12 14:05:17 +10:00
hvcall.S [POWERPC] ps3: add lv1 hvcalls 2006-12-04 20:40:44 +11:00
interrupt.c [POWERPC] Invert null match behaviour for irq_hosts 2007-09-14 01:33:20 +10:00
Kconfig [POWERPC] PS3: Remove text saying PS3 support is incomplete 2007-08-10 21:04:22 +10:00
Makefile [POWERPC] PS3: Device registration routines. 2007-06-28 19:16:43 +10:00
mm.c [POWERPC] PS3: Bootwrapper support. 2007-07-10 21:56:40 +10:00
os-area.c [POWERPC] PS3: Add os-area database routines 2007-10-09 21:01:59 +10:00
platform.h [POWERPC] PS3: Save os-area params to device tree 2007-10-09 21:01:59 +10:00
repository.c [POWERPC] cell/PS3: Ignore storage devices that are still being probed 2007-09-11 04:30:37 +10:00
setup.c [POWERPC] PS3: Save os-area params to device tree 2007-10-09 21:01:59 +10:00
smp.c [POWERPC] PS3: Kexec support 2007-06-28 19:16:37 +10:00
spu.c [POWERPC] cell: wrap master run control bit 2007-12-21 19:45:05 +11:00
system-bus.c Update arch/ to use sg helpers 2007-10-22 21:19:59 +02:00
time.c [POWERPC] PS3: Add os-area rtc_diff set/get routines 2007-10-09 21:01:58 +10:00