aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-07-29 06:16:35 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-07-29 07:24:58 -0400
commit4877c737283813bdb4bebfa3168c1585f6e3a8ca (patch)
treee46a3a9f3f0c2f91f955dba87e200a025fd6f488 /drivers/xen
parentba461f094bab2dc09487816b9dfce845796b259d (diff)
xen: Do not suspend IPI IRQs.
In general the semantics of IPIs are that they are are expected to continue functioning after dpm_suspend_noirq(). Specifically I have seen a deadlock between the callfunc IPI and the stop machine used by xen's do_suspend() routine. If one CPU has already called dpm_suspend_noirq() then there is a window where it can be sent a callfunc IPI before all the other CPUs have entered stop_cpu(). If this happens then the first CPU ends up spinning in stop_cpu() waiting for the other to rendezvous in state STOPMACHINE_PREPARE while the other is spinning in csd_lock_wait(). Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: xen-devel@lists.xensource.com LKML-Reference: <1280398595-29708-4-git-send-email-ian.campbell@citrix.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index db8f506817f0..28f133ae76ad 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -536,6 +536,7 @@ int bind_ipi_to_irqhandler(enum ipi_vector ipi,
536 if (irq < 0) 536 if (irq < 0)
537 return irq; 537 return irq;
538 538
539 irqflags |= IRQF_NO_SUSPEND;
539 retval = request_irq(irq, handler, irqflags, devname, dev_id); 540 retval = request_irq(irq, handler, irqflags, devname, dev_id);
540 if (retval != 0) { 541 if (retval != 0) {
541 unbind_from_irq(irq); 542 unbind_from_irq(irq);