diff options
author | Takao Shinohara <shin@sm.sony.co.jp> | 2007-04-30 17:01:07 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-02 06:04:31 -0400 |
commit | 0874dd40bf3c1f291da14b2c554c5640c0b6bf1b (patch) | |
tree | d20a34d51de21ffd04bb19e0d1f7a55176b57092 /arch/powerpc/kernel/irq.c | |
parent | dc4f60c25ae71e8278dcf909486e4aa34de7eecb (diff) |
[POWERPC] PS3: Fix system slowdown
The PS3 HV will deliver soft-disabled interrupts at the next HV call or
interrupt. Add an HV call to local_irq_restore() to force the timely
delivery of any pending interrupts.
This fixes the system slowdown bug reported here
http://bugzilla.kernel.org/show_bug.cgi?id=8260
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 6c83fe229e60..5719a530f2d1 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -67,6 +67,7 @@ | |||
67 | #ifdef CONFIG_PPC64 | 67 | #ifdef CONFIG_PPC64 |
68 | #include <asm/paca.h> | 68 | #include <asm/paca.h> |
69 | #include <asm/firmware.h> | 69 | #include <asm/firmware.h> |
70 | #include <asm/lv1call.h> | ||
70 | #endif | 71 | #endif |
71 | 72 | ||
72 | int __irq_offset_value; | 73 | int __irq_offset_value; |
@@ -162,6 +163,16 @@ void local_irq_restore(unsigned long en) | |||
162 | local_paca->hard_enabled = en; | 163 | local_paca->hard_enabled = en; |
163 | if ((int)mfspr(SPRN_DEC) < 0) | 164 | if ((int)mfspr(SPRN_DEC) < 0) |
164 | mtspr(SPRN_DEC, 1); | 165 | mtspr(SPRN_DEC, 1); |
166 | |||
167 | /* | ||
168 | * Force the delivery of pending soft-disabled interrupts on PS3. | ||
169 | * Any HV call will have this side effect. | ||
170 | */ | ||
171 | if (firmware_has_feature(FW_FEATURE_PS3_LV1)) { | ||
172 | u64 tmp; | ||
173 | lv1_get_version_info(&tmp); | ||
174 | } | ||
175 | |||
165 | hard_irq_enable(); | 176 | hard_irq_enable(); |
166 | } | 177 | } |
167 | #endif /* CONFIG_PPC64 */ | 178 | #endif /* CONFIG_PPC64 */ |