Skip to contentSkip to conversation

irq fixes for 4.8

GIT PULL Thomas Gleixner 1 participant 1 message Sep 24, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Linus,

please pull the latest irq-urgent-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus

Three fixes for irq core and irq chip drivers

- Do not set the irq type if type is NONE. Fixes a boot regression on various SoCs

- Use the proper cpu for setting up the GIC target list. Discovered by the cpumask debugging code.

- A rather large fix for the MIPS-GIC so per cpu local interrupts work again. This was discovered late because the code falls back to slower timers which use normal device interrupts.

Thanks,

tglx

------------------>
James Morse (1):
irqchip/gicv3: Silence noisy DEBUG_PER_CPU_MAPS warning

Marc Zyngier (1):
genirq: Skip chained interrupt trigger setup if type is IRQ_TYPE_NONE

Paul Burton (1):
irqchip/mips-gic: Fix local interrupts

 drivers/irqchip/irq-gic-v3.c   |   7 +--
 drivers/irqchip/irq-mips-gic.c | 105 ++++++++++++++++++++---------------------
 kernel/irq/chip.c              |   8 +++-
 3 files changed, 60 insertions(+), 60 deletions(-)
drivers/irqchip/irq-gic-v3.c +4 -3
index ede5672ab34d..da6c0ba61d4f 100644
@@ -548,7 +548,7 @@ static int gic_starting_cpu(unsigned int cpu)
 static u16 gic_compute_target_list(int *base_cpu, const struct cpumask *mask,
 				   unsigned long cluster_id)
 {
-	int cpu = *base_cpu;
+	int next_cpu, cpu = *base_cpu;
 	unsigned long mpidr = cpu_logical_map(cpu);
 	u16 tlist = 0;
 
@@ -562,9 +562,10 @@ static u16 gic_compute_target_list(int *base_cpu, const struct cpumask *mask,
 
 		tlist |= 1 << (mpidr & 0xf);
 
-		cpu = cpumask_next(cpu, mask);
-		if (cpu >= nr_cpu_ids)
+		next_cpu = cpumask_next(cpu, mask);
+		if (next_cpu >= nr_cpu_ids)
 			goto out;
+		cpu = next_cpu;
 
 		mpidr = cpu_logical_map(cpu);
 
drivers/irqchip/irq-mips-gic.c +50 -55

151 lines not on this page · raw message

kernel/irq/chip.c +6 -2
index 637389088b3f..26ba5654d9d5 100644
@@ -820,6 +820,8 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
 	desc->name = name;
 
 	if (handle != handle_bad_irq && is_chained) {
+		unsigned int type = irqd_get_trigger_type(&desc->irq_data);
+
 		/*
 		 * We're about to start this interrupt immediately,
 		 * hence the need to set the trigger configuration.
@@ -828,8 +830,10 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle,
 		 * chained interrupt. Reset it immediately because we
 		 * do know better.
 		 */
-		__irq_set_trigger(desc, irqd_get_trigger_type(&desc->irq_data));
-		desc->handle_irq = handle;
+		if (type != IRQ_TYPE_NONE) {
+			__irq_set_trigger(desc, type);
+			desc->handle_irq = handle;
+		}
 
 		irq_settings_set_noprobe(desc);
 		irq_settings_set_norequest(desc);