mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH REPOST] genirq: don't allow per cpu interrupts to be suspended
@ 2011-11-16 12:27 Marc Zyngier
  2011-11-16 14:30 ` Thomas Gleixner
  2011-11-18 23:48 ` [tip:irq/urgent] genirq: Don't " tip-bot for Marc Zyngier
  0 siblings, 2 replies; 3+ messages in thread
From: Marc Zyngier @ 2011-11-16 12:27 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kernel; +Cc: Thomas Gleixner

The power management functions related to interrupts do not know
(yet) about per-cpu interrupts and end up calling the wrong
low-level methods to enable/disable interrupts.

This leads to all kind of interesting issues (action taken on one
CPU only, updating a refcount which is not used otherwise...).

The workaround for the time being is simply to flag these interrupts
with IRQF_NO_SUSPEND. At least on ARM, these interrupts are actually
dealt with at the architecture level.

Reported-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
---
 kernel/irq/manage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 63c1625..6e04134 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -1596,7 +1596,7 @@ int request_percpu_irq(unsigned int irq, irq_handler_t handler,
 		return -ENOMEM;
 
 	action->handler = handler;
-	action->flags = IRQF_PERCPU;
+	action->flags = IRQF_PERCPU | IRQF_NO_SUSPEND;
 	action->name = devname;
 	action->percpu_dev_id = dev_id;
 
-- 
1.7.0.4



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH REPOST] genirq: don't allow per cpu interrupts to be suspended
  2011-11-16 12:27 [PATCH REPOST] genirq: don't allow per cpu interrupts to be suspended Marc Zyngier
@ 2011-11-16 14:30 ` Thomas Gleixner
  2011-11-18 23:48 ` [tip:irq/urgent] genirq: Don't " tip-bot for Marc Zyngier
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Gleixner @ 2011-11-16 14:30 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: linux-arm-kernel, linux-kernel

On Wed, 16 Nov 2011, Marc Zyngier wrote:

Queued for 3.2. Thanks for the reminder!

       tglx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:irq/urgent] genirq: Don't allow per cpu interrupts to be suspended
  2011-11-16 12:27 [PATCH REPOST] genirq: don't allow per cpu interrupts to be suspended Marc Zyngier
  2011-11-16 14:30 ` Thomas Gleixner
@ 2011-11-18 23:48 ` tip-bot for Marc Zyngier
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Marc Zyngier @ 2011-11-18 23:48 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, santosh.shilimkar, marc.zyngier, tglx

Commit-ID:  2ed0e645f358c26f4f4a7aed56a9488db0020ad1
Gitweb:     http://git.kernel.org/tip/2ed0e645f358c26f4f4a7aed56a9488db0020ad1
Author:     Marc Zyngier <marc.zyngier@arm.com>
AuthorDate: Wed, 16 Nov 2011 12:27:39 +0000
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Thu, 17 Nov 2011 17:44:04 +0100

genirq: Don't allow per cpu interrupts to be suspended

The power management functions related to interrupts do not know
(yet) about per-cpu interrupts and end up calling the wrong
low-level methods to enable/disable interrupts.

This leads to all kind of interesting issues (action taken on one
CPU only, updating a refcount which is not used otherwise...).

The workaround for the time being is simply to flag these interrupts
with IRQF_NO_SUSPEND. At least on ARM, these interrupts are actually
dealt with at the architecture level.

Reported-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1321446459-31409-1-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 kernel/irq/manage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 67ce837..0e2b179 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -1596,7 +1596,7 @@ int request_percpu_irq(unsigned int irq, irq_handler_t handler,
 		return -ENOMEM;
 
 	action->handler = handler;
-	action->flags = IRQF_PERCPU;
+	action->flags = IRQF_PERCPU | IRQF_NO_SUSPEND;
 	action->name = devname;
 	action->percpu_dev_id = dev_id;
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-18 23:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-16 12:27 [PATCH REPOST] genirq: don't allow per cpu interrupts to be suspended Marc Zyngier
2011-11-16 14:30 ` Thomas Gleixner
2011-11-18 23:48 ` [tip:irq/urgent] genirq: Don't " tip-bot for Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome