[PATCH] spufs: clear dsisr on CLASS1[Mf] exception
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Dec 2005 18:04:18 +0000 (19:04 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:53:21 +0000 (14:53 +1100)
Because of always clearing DSISR at spu class 1 interrupt handler,
kernel may lose Class1[Mf] interrupt.

Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: Geoff Levand <geoff.levand@am.sony.com>
Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spu_base.c

index f9da79e..3a53021 100644 (file)
@@ -240,7 +240,8 @@ spu_irq_class_1(int irq, void *data, struct pt_regs *regs)
        stat  = in_be64(&spu->priv1->int_stat_class1_RW) & mask;
        dar   = in_be64(&spu->priv1->mfc_dar_RW);
        dsisr = in_be64(&spu->priv1->mfc_dsisr_RW);
-       out_be64(&spu->priv1->mfc_dsisr_RW, 0UL);
+       if (stat & 2) /* mapping fault */
+               out_be64(&spu->priv1->mfc_dsisr_RW, 0UL);
        out_be64(&spu->priv1->int_stat_class1_RW, stat);
        spin_unlock(&spu->register_lock);