Skip to content

Add support for Tegra210 AGIC

Jon Hunter linux-devicetree linux-omap linux-renesas-soc linux-tegra lkml 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 59 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/15ARM: tegra: Correct interrupt type for ARM TWDarch/arm/boot/dts/tegra20.dtsi arch/arm/boot/dts/tegra30.dtsi+2 -22 replies
2/15ARM: OMAP: Correct interrupt type for ARM TWDarch/arm/boot/dts/omap4.dtsi+1 -13 replies
3/15irqchip/gic: Don't unnecessarily write the IRQ configurationdrivers/irqchip/irq-gic-common.c+6 -21 reply
4/15irqchip/gic: WARN if setting the interrupt type failsdrivers/irqchip/irq-gic-common.c drivers/irqchip/irq-gic-common.h drivers/irqchip/irq-gic-v3.c +2 more+13 -1512 replies
5/15irqchip: Mask the non-type/sense bits when translating an IRQdrivers/irqchip/irq-crossbar.c drivers/irqchip/irq-gic-v3.c drivers/irqchip/irq-tegra.c+3 -33 replies
6/15irqdomain: Ensure type settings match for an existing mappingkernel/irq/irqdomain.c+43 -163 replies
7/15irqdomain: Don't set type when mapping an IRQinclude/linux/irqdomain.h kernel/irq/irqdomain.c kernel/irq/manage.c+24 -43 replies
8/15genirq: Add runtime power management support for IRQ chipsinclude/linux/irq.h kernel/irq/chip.c kernel/irq/internals.h +2 more+72 -313 replies
9/15irqchip/gic: Don't initialise chip if mapping IO space failsdrivers/irqchip/irq-gic.c+6 -21 reply
10/15irqchip/gic: Remove static irq_chip definition for eoimode1drivers/irqchip/irq-gic.c+6 -162 replies
11/15irqchip/gic: Return an error if GIC initialisation failsdrivers/irqchip/irq-gic.c+41 -161 reply
12/15irqchip/gic: Pass GIC pointer to save/restore functionsdrivers/irqchip/irq-gic.c+39 -351 reply
13/15irqchip/gic: Prepare for adding platform driverdrivers/irqchip/irq-gic-common.c drivers/irqchip/irq-gic.c+57 -272 replies
14/15dt-bindings: arm-gic: Drop 'clock-names' from binding documentDocumentation/devicetree/bindings/interrupt-controller/arm,gic.txt+2 -912 replies
15/15irqchip/gic: Add support for tegra AGIC interrupt controllerDocumentation/devicetree/bindings/interrupt-controller/arm,gic.txt drivers/irqchip/Kconfig drivers/irqchip/irq-gic.c+189 -230 replies

Reviews trailers per patch

5 of 15 patches have a Reviewed-by or Acked-by.

PatchGrygorii StrashkoMarc Zyngier
1/15
2/15T-b
3/15A-b
4/15
5/15A-b
6/15
7/15
8/15
9/15A-b
10/15A-b
11/15
12/15A-b
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/15] Add support for Tegra210 AGIC

The Tegra210 AGIC interrupt controller is a 2nd level interrupt controller located in a separate power domain to the main GIC interrupt controller. It can route interrupts to the main CPU cluster or an Audio DSP slave. This series only support routing interrupts to the main CPU cluster.

Ideally we would like to re-use the existing ARM GIC driver because the AGIC is a GIC-400. However, in order to do so this requires adding runtime power management support for irqchips and several significant changes to the exisiting GIC driver for power management reasons.

Originally, this series was sent out as an RFC [0] and hopefully, I have addressed all the comments and issues reported. I was/am tempted to split this series into two series, one to add runtime-pm support for irqchips (patches 1-8) and one to add support for the AGIC to the GIC driver (patches 9-15). If this would be more manageable and easier, I am happy to do so.

I have included a fix for OMAP (needs testing) that was reported by Grygorii. I know it may seem odd to include in a series adding an interrupt controller for Tegra, but oh well ...

This is work well so far on Tegra, but would love to get some more testing on other platforms.

[0] http://marc.info/?l=linux-kernel&m=145034948920651&w=2

Jon Hunter (15):
ARM: tegra: Correct interrupt type for ARM TWD
ARM: OMAP: Correct interrupt type for ARM TWD irqchip/gic: Don't unnecessarily write the IRQ configuration irqchip/gic: WARN if setting the interrupt type fails
irqchip: Mask the non-type/sense bits when translating an IRQ
irqdomain: Ensure type settings match for an existing mapping
irqdomain: Don't set type when mapping an IRQ
genirq: Add runtime power management support for IRQ chips irqchip/gic: Don't initialise chip if mapping IO space fails irqchip/gic: Remove static irq_chip definition for eoimode1 irqchip/gic: Return an error if GIC initialisation fails irqchip/gic: Pass GIC pointer to save/restore functions irqchip/gic: Prepare for adding platform driver
dt-bindings: arm-gic: Drop 'clock-names' from binding document irqchip/gic: Add support for tegra AGIC interrupt controller

 .../bindings/interrupt-controller/arm,gic.txt      |  12 +-
 arch/arm/boot/dts/omap4.dtsi                       |   2 +-
 arch/arm/boot/dts/tegra20.dtsi                     |   2 +-
 arch/arm/boot/dts/tegra30.dtsi                     |   2 +-
 drivers/irqchip/Kconfig                            |   1 +
 drivers/irqchip/irq-crossbar.c                     |   2 +-
 drivers/irqchip/irq-gic-common.c                   |  19 +-
 drivers/irqchip/irq-gic-common.h                   |   2 +-
 drivers/irqchip/irq-gic-v3.c                       |   6 +-
 drivers/irqchip/irq-gic.c                          | 437 ++++++++++++++++-----
 drivers/irqchip/irq-hip04.c                        |   5 +-
 drivers/irqchip/irq-tegra.c                        |   2 +-
 include/linux/irq.h                                |   5 +
 include/linux/irqdomain.h                          |   3 +
 kernel/irq/chip.c                                  |  52 +++
 kernel/irq/internals.h                             |   1 +
 kernel/irq/irqdomain.c                             |  77 +++-
 kernel/irq/manage.c                                |  21 +-
 kernel/irq/pm.c                                    |   3 +
 19 files changed, 492 insertions(+), 162 deletions(-)
Signature · 1 line
2.1.4