kernel_optimize_test/arch/powerpc
Michael Ellerman ff8a8f2597 [POWERPC] add support for stopping spus from xmon
This patch adds support for stopping, and restarting, spus
from xmon. We use the spu master runcntl bit to stop execution,
this is apparently the "right" way to control spu execution and
spufs will be changed in the future to use this bit.

Testing has shown that to restart execution we have to turn the
master runcntl bit on and also rewrite the spu runcntl bit, even
if it is already set to 1 (running).

Stopping spus is triggered by the xmon command 'ss' - "spus stop"
perhaps. Restarting them is triggered via 'sr'. Restart doesn't
start execution on spus unless they were running prior to being
stopped by xmon.

Walking the spu->full_list in xmon after a panic, would mean
corruption of any spu struct would make all the others
inaccessible. To avoid this, and also to make the next patch
easier, we cache pointers to all spus during boot.

We attempt to catch and recover from errors while stopping and
restarting the spus, but as with most xmon functionality there are
no guarantees that performing these operations won't crash xmon
itself.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-10-25 14:20:22 +10:00
..
boot [POWERPC] Fixed some missing files to be deleted when running make clean 2006-10-25 14:20:20 +10:00
configs [POWERPC] cell: add temperature to SPU and CPU sysfs entries 2006-10-25 14:20:22 +10:00
kernel [POWERPC] cell: use ppc_md->power_save instead of cbe_idle_loop 2006-10-25 14:20:22 +10:00
lib [POWERPC] Fix rheap alignment problem 2006-10-02 20:27:47 +10:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] Make pSeries_lpar_hpte_insert static 2006-10-16 16:33:04 +10:00
oprofile fix file specification in comments 2006-10-03 23:01:26 +02:00
platforms [POWERPC] add support for stopping spus from xmon 2006-10-25 14:20:22 +10:00
sysdev [POWERPC] Remove todc code from ARCH=powerpc 2006-10-16 16:32:30 +10:00
xmon [POWERPC] add support for stopping spus from xmon 2006-10-25 14:20:22 +10:00
Kconfig [POWERPC] Remove todc code from ARCH=powerpc 2006-10-16 16:32:30 +10:00
Kconfig.debug [POWERPC] print backtrace when entering xmon 2006-09-13 18:39:53 +10:00
Makefile [POWERPC] Create a "wrapper" script and use it in arch/powerpc/boot 2006-09-28 14:30:02 +10:00