diff options
author | Arnd Bergmann <arnd@arndb.de> | 2005-12-09 13:04:18 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:53:21 -0500 |
commit | 38307341af3a0be8ec5319756361b51ac29dffc7 (patch) | |
tree | 082fae758ea5cc5e4376e7c9e0f3a6b479d59266 /arch | |
parent | 462c853eb574bc7843d9c56e84aca129aaa8e018 (diff) |
[PATCH] spufs: clear dsisr on CLASS1[Mf] exception
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/cell/spu_base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c index f9da79eb3db0..3a5302151e09 100644 --- a/arch/powerpc/platforms/cell/spu_base.c +++ b/arch/powerpc/platforms/cell/spu_base.c | |||
@@ -240,7 +240,8 @@ spu_irq_class_1(int irq, void *data, struct pt_regs *regs) | |||
240 | stat = in_be64(&spu->priv1->int_stat_class1_RW) & mask; | 240 | stat = in_be64(&spu->priv1->int_stat_class1_RW) & mask; |
241 | dar = in_be64(&spu->priv1->mfc_dar_RW); | 241 | dar = in_be64(&spu->priv1->mfc_dar_RW); |
242 | dsisr = in_be64(&spu->priv1->mfc_dsisr_RW); | 242 | dsisr = in_be64(&spu->priv1->mfc_dsisr_RW); |
243 | out_be64(&spu->priv1->mfc_dsisr_RW, 0UL); | 243 | if (stat & 2) /* mapping fault */ |
244 | out_be64(&spu->priv1->mfc_dsisr_RW, 0UL); | ||
244 | out_be64(&spu->priv1->int_stat_class1_RW, stat); | 245 | out_be64(&spu->priv1->int_stat_class1_RW, stat); |
245 | spin_unlock(&spu->register_lock); | 246 | spin_unlock(&spu->register_lock); |
246 | 247 | ||