irq/urgent for v6.6-rc6
Subsystems (8)
Linus,
please pull the latest irq/urgent branch from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-2023-10-10-v2
up to: 4dc5af1fee55: Merge tag 'irqchip-fixes-6.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/urgent
A set of updates for interrupt chip drivers:
- Fix the fail of the Qualcomm PDC driver on v3.2 hardware which is caused by a control bit being moved to a different location
- Update the SM8150 device tree PDC resource so the version register can be read
- Make the Renesas RZG2L driver correct for interrupts which are outside of the LSB in the TSSR register by using the proper macro for calculating the mask
- Document the Renesas RZ2GL device tree binding correctly and update them for a few devices which faul to boot otherwise
- Use the proper accessor in the RZ2GL driver instead of blindly dereferencing an unchecked pointer
- Make GICv3 handle the dma-non-coherent attribute correctly
- Ensure that all interrupt controller nodes on RISCV are marked as initialized correctly
Maintainer changes:
- Add a new entry for GIC interrupt controllers and assign Marc Zyngier as the maintainer
- Remove Marc Zyngier from the core and driver maintainer entries as he is burried in work and short of time to handle that.
Thanks to Marc for all the great work he has done in the past couple of years!
Note:
5873d380f4c0 ("irqchip/qcom-pdc: Add support for v3.2 HW") has a incorrect SOB chain.
The real author is Neil. His patch was posted by Dmitry once and Neil picked it up from the list and reposted it with the bogus SOB chain.
Not a big deal, but worth to mention. I wanted to fix that up, but then got distracted and Marc piled more changes on top. So I decided to leave it as is instead of rebasing world.
Let me know if you want the fixup and rebase nevertheless.
Thanks,
tglx
------------------>
Anup Patel (1):
irqchip/riscv-intc: Mark all INTC nodes as initialized
Ben Wolsieffer (1):
irqchip/stm32-exti: add missing DT IRQ flag translation
Biju Das (1):
irqchip: renesas-rzg2l: Fix logic to clear TINT interrupt source
Dmitry Baryshkov (1):
arm64: dts: qcom: sm8150: extend the size of the PDC resource
Geert Uytterhoeven (2):
dt-bindings: interrupt-controller: renesas,irqc: Add r8a779f0 support irqchip/renesas-rzg2l: Convert to irq_data_get_irq_chip_data()
Lad Prabhakar (2):
dt-bindings: interrupt-controller: renesas,rzg2l-irqc: Update description for '#interrupt-cells' property
dt-bindings: interrupt-controller: renesas,rzg2l-irqc: Document RZ/G2UL SoC
Lorenzo Pieralisi (2):
dt-bindings: interrupt-controller: arm,gic-v3: Add dma-noncoherent property irqchip/gic-v3: Enable non-coherent redistributors/ITSes DT probing
Marc Zyngier (3):
irqchip/gic-v3-its: Split allocation from initialisation of its_node
MAINTAINERS: Add myself as the ARM GIC maintainer
MAINTAINERS: Remove myself from the general IRQ subsystem maintenance
Neil Armstrong (1):
irqchip/qcom-pdc: Add support for v3.2 HW
.../bindings/interrupt-controller/arm,gic-v3.yaml | 12 ++ .../interrupt-controller/renesas,irqc.yaml | 1 + .../interrupt-controller/renesas,rzg2l-irqc.yaml | 230 ++++++++++++++++----- MAINTAINERS | 14 +- arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +- drivers/irqchip/irq-gic-common.h | 4 + drivers/irqchip/irq-gic-v3-its.c | 170 +++++++++------ drivers/irqchip/irq-gic-v3.c | 13 ++ drivers/irqchip/irq-renesas-rzg2l.c | 4 +- drivers/irqchip/irq-riscv-intc.c | 10 +- drivers/irqchip/irq-stm32-exti.c | 1 + drivers/irqchip/qcom-pdc.c | 69 +++++-- 12 files changed, 385 insertions(+), 145 deletions(-)
Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml +12 -0
@@ -106,6 +106,12 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 maximum: 4096 + dma-noncoherent: + description: + Present if the GIC redistributors permit programming shareability + and cacheability attributes but are connected to a non-coherent + downstream interconnect. + msi-controller: description: Only present if the Message Based Interrupt functionality is
@@ -193,6 +199,12 @@ patternProperties: compatible: const: arm,gic-v3-its + dma-noncoherent: + description: + Present if the GIC ITS permits programming shareability and + cacheability attributes but is connected to a non-coherent + downstream interconnect. + msi-controller: true "#msi-cells":
Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.yaml +1 -0
@@ -37,6 +37,7 @@ properties: - renesas,intc-ex-r8a77990 # R-Car E3 - renesas,intc-ex-r8a77995 # R-Car D3 - renesas,intc-ex-r8a779a0 # R-Car V3U + - renesas,intc-ex-r8a779f0 # R-Car S4-8 - renesas,intc-ex-r8a779g0 # R-Car V4H - const: renesas,irqc
Documentation/devicetree/bindings/interrupt-controller/renesas,rzg2l-irqc.yaml +173 -57
261 lines not on this page · raw message
MAINTAINERS +12 -2
@@ -1585,6 +1585,17 @@ F: arch/arm/include/asm/arch_timer.h F: arch/arm64/include/asm/arch_timer.h F: drivers/clocksource/arm_arch_timer.c +ARM GENERIC INTERRUPT CONTROLLER DRIVERS +M: Marc Zyngier <[email protected]> +L: [email protected] (moderated for non-subscribers) +S: Maintained +F: Documentation/devicetree/bindings/interrupt-controller/arm,gic* +F: arch/arm/include/asm/arch_gicv3.h +F: arch/arm64/include/asm/arch_gicv3.h +F: drivers/irqchip/irq-gic*.[ch] +F: include/linux/irqchip/arm-gic*.h +F: include/linux/irqchip/arm-vgic-info.h + ARM HDLCD DRM DRIVER M: Liviu Dudau <[email protected]> S: Supported
@@ -11064,7 +11075,7 @@ F: Documentation/devicetree/bindings/sound/irondevice,* F: sound/soc/codecs/sma* IRQ DOMAINS (IRQ NUMBER MAPPING LIBRARY) -M: Marc Zyngier <[email protected]> +M: Thomas Gleixner <[email protected]> S: Maintained T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core F: Documentation/core-api/irq/irq-domain.rst
@@ -11083,7 +11094,6 @@ F: lib/group_cpus.c IRQCHIP DRIVERS M: Thomas Gleixner <[email protected]> -M: Marc Zyngier <[email protected]> L: [email protected] S: Maintained T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core
arch/arm64/boot/dts/qcom/sm8150.dtsi +1 -1
@@ -3958,7 +3958,7 @@ dispcc: clock-controller@af00000 { pdc: interrupt-controller@b220000 { compatible = "qcom,sm8150-pdc", "qcom,pdc"; - reg = <0 0x0b220000 0 0x400>; + reg = <0 0x0b220000 0 0x30000>; qcom,pdc-ranges = <0 480 94>, <94 609 31>, <125 63 1>; #interrupt-cells = <2>;
drivers/irqchip/irq-gic-common.h +4 -0
@@ -29,4 +29,8 @@ void gic_enable_quirks(u32 iidr, const struct gic_quirk *quirks,void gic_enable_of_quirks (const struct device_node *np,const struct gic_quirk *quirks,void *data); +#define RDIST_FLAGS_PROPBASE_NEEDS_FLUSHING (1 << 0) +#define RDIST_FLAGS_RD_TABLES_PREALLOCATED (1 << 1) +#define RDIST_FLAGS_FORCE_NON_SHAREABLE (1 << 2) +#endif /* _IRQ_GIC_COMMON_H */
drivers/irqchip/irq-gic-v3-its.c +106 -64
324 lines not on this page · raw message
drivers/irqchip/irq-gic-v3.c +13 -0
@@ -1857,6 +1857,14 @@ static bool gic_enable_quirk_arm64_2941627(void *data)return true; } +static bool rd_set_non_coherent (void *data) +{ +struct gic_chip_data *d = data; + + d->rdists.flags |=RDIST_FLAGS_FORCE_NON_SHAREABLE ; +return true; +} +static const struct gic_quirk gic_quirks[] = { { .desc ="GICv3: Qualcomm MSM8996 broken firmware" ,
@@ -1923,6 +1931,11 @@ static const struct gic_quirk gic_quirks[] = { .mask = 0xff0f0fff, .init = gic_enable_quirk_arm64_2941627, }, + { + .desc = "GICv3: non-coherent attribute", + .property = "dma-noncoherent", + .init = rd_set_non_coherent, + }, { } };
drivers/irqchip/irq-renesas-rzg2l.c +2 -2
@@ -118,7 +118,7 @@ static void rzg2l_irqc_irq_disable(struct irq_data *d)raw_spin_lock (&priv->lock); reg =readl_relaxed (priv->base +TSSR (tssr_index)); - reg &= ~(TSSEL_MASK << tssr_offset); + reg &= ~(TSSEL_MASK <<TSSEL_SHIFT (tssr_offset));writel_relaxed (reg, priv->base +TSSR (tssr_index));raw_spin_unlock (&priv->lock); }
@@ -130,8 +130,8 @@ static void rzg2l_irqc_irq_enable(struct irq_data *d)unsigned int hw_irq =irqd_to_hwirq (d);if (hw_irq >=IRQC_TINT_START && hw_irq <IRQC_NUM_IRQ ) { +unsigned long tint = (uintptr_t )irq_data_get_irq_chip_data (d);struct rzg2l_irqc_priv *priv =irq_data_to_priv (d); -unsigned long tint = (uintptr_t )d->chip_data;u32 offset = hw_irq -IRQC_TINT_START ;u32 tssr_offset =TSSR_OFFSET (offset);u8 tssr_index =TSSR_INDEX (offset);
drivers/irqchip/irq-riscv-intc.c +9 -1
@@ -155,8 +155,16 @@ static int __init riscv_intc_init(struct device_node *node,* for each INTC DT node. We only need to do INTC initialization * for the INTC DT node belonging to boot CPU (or boot HART). */ -if (riscv_hartid_to_cpuid (hartid) !=smp_processor_id ()) +if (riscv_hartid_to_cpuid (hartid) !=smp_processor_id ()) { +/* +* The INTC nodes of each CPU are suppliers for downstream +* interrupt controllers (such as PLIC, IMSIC and APLIC +* direct-mode) so we should mark an INTC node as initialized +* if we are not creating IRQ domain for it. +*/ +fwnode_dev_initialized (of_fwnode_handle (node), true);return 0 ; + }return riscv_intc_init_common (of_node_to_fwnode (node)); }
drivers/irqchip/irq-stm32-exti.c +1 -0
@@ -460,6 +460,7 @@ static const struct irq_domain_ops irq_exti_domain_ops = { .map = irq_map_generic_chip, .alloc = stm32_exti_alloc, .free = stm32_exti_free, + .xlate = irq_domain_xlate_twocell, };static void stm32_irq_ack (struct irq_data *d)
drivers/irqchip/qcom-pdc.c +51 -18
128 lines not on this page · raw message
The pull request you sent on Tue, 10 Oct 2023 14:16:29 +0200 (CEST):
The pull request you sent on Tue, 10 Oct 2023 14:16:29 +0200 (CEST):
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.gitirq-urgent-2023-10-10-v2
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/87813e13df5ca4d899e2da0bc37d40f9a95788ee
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html