]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] cell: fix spurious false return from spu_trap_data_{map,seg}
authorAndre Detsch <adetsch@br.ibm.com>
Tue, 19 Feb 2008 13:06:15 +0000 (10:06 -0300)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 20 Feb 2008 03:57:36 +0000 (14:57 +1100)
commitaef5585df5403c27c5b3d98a36c1c10799c56463
treec681c9de46a88a5c99af21c881d1997cac2fee09
parent9c1b8c1bfba0bc2bc949bbfebff779e51934776d
[POWERPC] cell: fix spurious false return from spu_trap_data_{map,seg}

At present, the __spufs_trap_data_map and __spu_trap_data_seq functions
exit if spu->flags has the SPU_CONTEXT_SWITCH_ACTIVE set. This was
resulting in suprious returns from these functions, as they may be
legitimately called when we have this bit set.

We only use it in these two sanity checks, so this change removes the
flag completely. This fixes hangs in the page-fault path of SPE apps.

Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spu_base.c
arch/powerpc/platforms/cell/spufs/switch.c
include/asm-powerpc/spu.h