x86: Handle legacy PIC interrupts on all the cpu's
authorSuresh Siddha <suresh.b.siddha@intel.com>
Mon, 15 Mar 2010 22:33:06 +0000 (14:33 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 16 Mar 2010 05:36:35 +0000 (06:36 +0100)
commit36e9e1eab777e077f7484d309ff676d0568e27d1
tree488fd5fb3ee1b3e755ddd08e57e3fc55e22babee
parenta3d3203e4bb40f253b1541e310dc0f9305be7c84
x86: Handle legacy PIC interrupts on all the cpu's

Ingo Molnar reported that with the recent changes of not
statically blocking IRQ0_VECTOR..IRQ15_VECTOR's on all the
cpu's, broke an AMD platform (with Nvidia chipset) boot when
"noapic" boot option is used.

On this platform, legacy PIC interrupts are getting delivered to
all the cpu's instead of just the boot cpu. Thus not
initializing the vector to irq mapping for the legacy irq's
resulted in not handling certain interrupts causing boot hang.

Fix this by initializing the vector to irq mapping on all the
logical cpu's, if the legacy IRQ is handled by the legacy PIC.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
[ -v2: io-apic-enabled improvement ]
Acked-by: Yinghai Lu <yinghai@kernel.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
LKML-Reference: <1268692386.3296.43.camel@sbs-t61.sc.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/hw_irq.h
arch/x86/kernel/apic/io_apic.c
arch/x86/kernel/irqinit.c
arch/x86/kernel/smpboot.c