]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.8.5/irqchip-eznps-acknowledge-nps_ipi-before-calling-the-handler.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.8.5 / irqchip-eznps-acknowledge-nps_ipi-before-calling-the-handler.patch
1 From c0ca8df717061ae3d2ea624024033103c64210ae Mon Sep 17 00:00:00 2001
2 From: Noam Camus <noamca@mellanox.com>
3 Date: Thu, 13 Oct 2016 16:15:32 +0300
4 Subject: irqchip/eznps: Acknowledge NPS_IPI before calling the handler
5
6 From: Noam Camus <noamca@mellanox.com>
7
8 commit c0ca8df717061ae3d2ea624024033103c64210ae upstream.
9
10 IPI_IRQ (also TIMER0_IRQ) should be acked before the action->handler is called
11 in handle_percpu_devid_irq.
12
13 The IPI irq is edge sensitive and we might miss an IPI interrupt if it is
14 triggered again while the handler runs.
15
16 Fixes: 44df427c894a ("irqchip: add nps Internal and external irqchips")
17 Signed-off-by: Noam Camus <noamca@mellanox.com>
18 Cc: marc.zyngier@arm.com
19 Cc: jason@lakedaemon.net
20 Link: http://lkml.kernel.org/r/1476364532-12634-1-git-send-email-noamca@mellanox.com
21 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
22 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23
24 ---
25 drivers/irqchip/irq-eznps.c | 4 ++--
26 1 file changed, 2 insertions(+), 2 deletions(-)
27
28 --- a/drivers/irqchip/irq-eznps.c
29 +++ b/drivers/irqchip/irq-eznps.c
30 @@ -85,7 +85,7 @@ static void nps400_irq_eoi_global(struct
31 nps_ack_gic();
32 }
33
34 -static void nps400_irq_eoi(struct irq_data *irqd)
35 +static void nps400_irq_ack(struct irq_data *irqd)
36 {
37 unsigned int __maybe_unused irq = irqd_to_hwirq(irqd);
38
39 @@ -103,7 +103,7 @@ static struct irq_chip nps400_irq_chip_p
40 .name = "NPS400 IC",
41 .irq_mask = nps400_irq_mask,
42 .irq_unmask = nps400_irq_unmask,
43 - .irq_eoi = nps400_irq_eoi,
44 + .irq_ack = nps400_irq_ack,
45 };
46
47 static int nps400_irq_map(struct irq_domain *d, unsigned int virq,