android_kernel_xiaomi_sm8350/arch/powerpc/platforms
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
..
4xx
8xx
82xx [HEADERS] Put linux/config.h out of its misery. 2006-10-09 19:13:51 -04:00
83xx [POWERPC] Add Makefile entry for MPC832x_mds support 2006-10-16 15:53:30 +10:00
85xx [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
86xx [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
apus
cell [POWERPC] add support for stopping spus from xmon 2006-10-25 14:20:22 +10:00
chrp [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
embedded6xx [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
iseries [POWERPC] Move iSeries initrd logic into device tree 2006-10-24 15:01:27 +10:00
maple [POWERPC] Fix Maple secondary IDE interrupt 2006-10-10 11:54:26 +10:00
pasemi [PATCH] trivial iomem annotations (arch/powerpc/platfroms/parsemi/pci.c) 2006-10-09 14:19:08 -07:00
powermac [POWERPC] Fix secondary CPU startup on old "powersurge" SMP powermacs 2006-10-10 13:51:00 +10:00
prep
pseries [POWERPC] Make pSeries_lpar_hpte_insert static 2006-10-16 16:33:04 +10:00
Makefile [POWERPC] powerpc: PA Semi PWRficient platform support 2006-09-13 18:39:53 +10:00