linux/arch/powerpc/platforms/cell
Arnd Bergmann 3a843d7cd3 [PATCH] spufs: fix mailbox polling
Handling mailbox interrupts was broken in multiple respects,
the combination of which was hiding the bugs most of the time.

- The ibox interrupt mask was open initially even though there
  are no waiters on a newly created SPU.

- Acknowledging the mailbox interrupt did not work because
  it is level triggered and the mailbox data is never retrieved
  from inside the interrupt handler.

- The interrupt handler delivered interrupts with a disabled
  mask if another interrupt is triggered for the same class
  but a different mask.

- The poll function did not enable the interrupt if it had not
  been enabled, so we might run into the poll timeout if none of
  the other bugs saved us and no signal was delivered.

We probably still have a similar problem with blocking
read/write on mailbox files, but that will result in extra
wakeup in the worst case, not in incorrect behaviour.

Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-01-09 14:53:01 +11:00
..
spufs [PATCH] spufs: fix mailbox polling 2006-01-09 14:53:01 +11:00
interrupt.c [PATCH] powerpc: move arch/ppc64/kernel/bpa* to arch/powerpc/platforms/cell 2005-11-01 21:03:07 +11:00
interrupt.h [PATCH] powerpc: move arch/ppc64/kernel/bpa* to arch/powerpc/platforms/cell 2005-11-01 21:03:07 +11:00
iommu.c [PATCH] powerpc: move arch/ppc64/kernel/bpa* to arch/powerpc/platforms/cell 2005-11-01 21:03:07 +11:00
iommu.h [PATCH] powerpc: move arch/ppc64/kernel/bpa* to arch/powerpc/platforms/cell 2005-11-01 21:03:07 +11:00
Kconfig [PATCH] spufs: The SPU file system, base 2006-01-09 14:49:12 +11:00
Makefile [PATCH] spufs: The SPU file system, base 2006-01-09 14:49:12 +11:00
setup.c [PATCH] spufs: fix local store page refcounting 2006-01-09 14:52:45 +11:00
smp.c [PATCH] powerpc: create a new arch/powerpc/platforms/cell/smp.c 2005-11-01 21:02:53 +11:00
spider-pic.c [PATCH] powerpc: move arch/ppc64/kernel/bpa* to arch/powerpc/platforms/cell 2005-11-01 21:03:07 +11:00
spu_base.c [PATCH] spufs: fix mailbox polling 2006-01-09 14:53:01 +11:00
spu_syscalls.c [PATCH] spufs: Fix oops when spufs module is not loaded 2006-01-09 14:52:48 +11:00