]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64] Avoid kernel hang during CMC interrupt storm
authorBryan Sutula <Bryan.Sutula@hp.com>
Wed, 5 Oct 2005 17:02:06 +0000 (11:02 -0600)
committerTony Luck <tony.luck@intel.com>
Thu, 6 Oct 2005 22:04:11 +0000 (15:04 -0700)
commitfbeb2db88b7051e97c6c3d66cdfe1ffb49c4acf8
treebe96c432f97e0390d615acf0a162671705d6570e
parent3a58dc6c816464e074aebaa3744235ecc37b7e52
[IA64] Avoid kernel hang during CMC interrupt storm

I've noticed a kernel hang during a storm of CMC interrupts, which was
tracked down to the continual execution of the interrupt handler.

There's code in the CMC handler that's supposed to disable CMC
interrupts and switch to polling mode when it sees a bunch of CMCs.
Because disabling CMCs across all CPUs isn't safe in interrupt context,
the disable is done with a schedule_work().  But with continual CMC
interrupts, the schedule_work() never gets executed.

The following patch immediately disables CMC interrupts for the current
CPU.  This then allows (at least) one CPU to ignore CMC interrupts,
execute the schedule_work() code, and disable CMC interrupts on the rest
of the CPUs.

Acked-by: Keith Owens <kaos@sgi.com>
Signed-off-by: Bryan Sutula <Bryan.Sutula@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/mca.c