irq updates for 4.7
Subsystems (5)
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
This update constains:
- A few simple fixes for fallout from the recent gic-v3 changes
- A workaround for a Cavium thunderX erratum
- A bugfix for the pic32 irqchip to make external interrupts work proper
- A missing return value in the generic IPI management code
Thanks,
tglx
------------------>
Andrew Jones (2):
irqchip/gic-v3: Fix copy+paste mistakes in defines irqchip/gic-v3: Fix quiescence check in gic_enable_redist
Ganapatrao Kulkarni (1):
irqchip/gicv3-its: numa: Enable workaround for Cavium thunderx erratum 23144
Joshua Henderson (1):
irqchip/irq-pic32-evic: Fix bug with external interrupts.
Marc Zyngier (1):
irqchip/gic-v3: Fix ICC_SGI1R_EL1.INTID decoding mask
Matt Redfearn (1):
genirq: Fix missing return value in irq_destroy_ipi()
Documentation/arm64/silicon-errata.txt | 1 + arch/arm64/Kconfig | 9 +++++++ drivers/irqchip/irq-gic-v3-its.c | 49 ++++++++++++++++++++++++++++++++-- drivers/irqchip/irq-gic-v3.c | 2 +- drivers/irqchip/irq-pic32-evic.c | 2 +- include/linux/irqchip/arm-gic-v3.h | 6 ++--- kernel/irq/ipi.c | 2 +- 7 files changed, 63 insertions(+), 8 deletions(-)
Documentation/arm64/silicon-errata.txt +1 -0
@@ -56,6 +56,7 @@ stable kernels. | ARM | MMU-500 | #841119,#826419 | N/A | | | | | | | Cavium | ThunderX ITS | #22375, #24313 | CAVIUM_ERRATUM_22375 | +| Cavium | ThunderX ITS | #23144 | CAVIUM_ERRATUM_23144 | | Cavium | ThunderX GICv3 | #23154 | CAVIUM_ERRATUM_23154 | | Cavium | ThunderX Core | #27456 | CAVIUM_ERRATUM_27456 | | Cavium | ThunderX SMMUv2 | #27704 | N/A |
arch/arm64/Kconfig +9 -0
@@ -426,6 +426,15 @@ config CAVIUM_ERRATUM_22375 If unsure, say Y. +config CAVIUM_ERRATUM_23144 + bool "Cavium erratum 23144: ITS SYNC hang on dual socket system" + depends on NUMA + default y + help + ITS SYNC command hang for cross node io and collections/cpu mapping. + + If unsure, say Y. + config CAVIUM_ERRATUM_23154 bool "Cavium erratum 23154: Access to ICC_IAR1_EL1 is not sync'ed" default y
drivers/irqchip/irq-gic-v3-its.c +47 -2
103 lines not on this page · raw message
drivers/irqchip/irq-gic-v3.c +1 -1
@@ -155,7 +155,7 @@ static void gic_enable_redist(bool enable)while (count--) { val =readl_relaxed (rbase +GICR_WAKER ); -if (enable ^ (val & GICR_WAKER_ChildrenAsleep)) +if (enable ^ (bool )(val & GICR_WAKER_ChildrenAsleep))break ;cpu_relax ();udelay (1 );
drivers/irqchip/irq-pic32-evic.c +1 -1
@@ -91,7 +91,7 @@ static int pic32_set_type_edge(struct irq_data *data,/* set polarity for external interrupts only */ for (i =0 ; i <ARRAY_SIZE (priv->ext_irqs); i++) {if (priv->ext_irqs[i] == data->hwirq) { - ret =pic32_set_ext_polarity (i +1 , flow_type); + ret =pic32_set_ext_polarity (i, flow_type);if (ret)return ret; }
include/linux/irqchip/arm-gic-v3.h +3 -3
@@ -305,12 +305,12 @@#define ICC_SGI1R_AFFINITY_1_SHIFT 16#define ICC_SGI1R_AFFINITY_1_MASK (0xff << ICC_SGI1R_AFFINITY_1_SHIFT)#define ICC_SGI1R_SGI_ID_SHIFT 24 -#define ICC_SGI1R_SGI_ID_MASK (0xff << ICC_SGI1R_SGI_ID_SHIFT) +#define ICC_SGI1R_SGI_ID_MASK (0xfULL << ICC_SGI1R_SGI_ID_SHIFT)#define ICC_SGI1R_AFFINITY_2_SHIFT 32 -#define ICC_SGI1R_AFFINITY_2_MASK (0xffULL << ICC_SGI1R_AFFINITY_1_SHIFT) +#define ICC_SGI1R_AFFINITY_2_MASK (0xffULL << ICC_SGI1R_AFFINITY_2_SHIFT)#define ICC_SGI1R_IRQ_ROUTING_MODE_BIT 40#define ICC_SGI1R_AFFINITY_3_SHIFT 48 -#define ICC_SGI1R_AFFINITY_3_MASK (0xffULL << ICC_SGI1R_AFFINITY_1_SHIFT) +#define ICC_SGI1R_AFFINITY_3_MASK (0xffULL << ICC_SGI1R_AFFINITY_3_SHIFT)#include <asm/arch_gicv3.h>
kernel/irq/ipi.c +1 -1
@@ -125,7 +125,7 @@ int irq_destroy_ipi(unsigned int irq, const struct cpumask *dest) domain = data->domain;if (WARN_ON (domain ==NULL )) -return ; +return -EINVAL ;if (!irq_domain_is_ipi (domain)) {pr_warn ("Trying to destroy a non IPI domain!\n" );