Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24603
b: refs/heads/master
c: 5536408
h: refs/heads/master
i:
  24601: ad2a995
  24599: 5a835a8
v: v3
  • Loading branch information
Arnd Bergmann authored and Paul Mackerras committed Mar 27, 2006
1 parent 9401c50 commit 3c5e087
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d0e57c68373f8ded8c50245fd082e606f9f63221
refs/heads/master: 5536408c21cdde38bfdbb59a6fd4fcbf1232699f
19 changes: 18 additions & 1 deletion trunk/arch/powerpc/platforms/cell/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,24 @@ static DEFINE_PER_CPU(struct iic, iic);

void iic_local_enable(void)
{
out_be64(&__get_cpu_var(iic).regs->prio, 0xff);
struct iic *iic = &__get_cpu_var(iic);
u64 tmp;

/*
* There seems to be a bug that is present in DD2.x CPUs
* and still only partially fixed in DD3.1.
* This bug causes a value written to the priority register
* not to make it there, resulting in a system hang unless we
* write it again.
* Masking with 0xf0 is done because the Cell BE does not
* implement the lower four bits of the interrupt priority,
* they always read back as zeroes, although future CPUs
* might implement different bits.
*/
do {
out_be64(&iic->regs->prio, 0xff);
tmp = in_be64(&iic->regs->prio);
} while ((tmp & 0xf0) != 0xf0);
}

void iic_local_disable(void)
Expand Down

0 comments on commit 3c5e087

Please sign in to comment.