All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/16] Divorcing irqdomain and device_node
@ 2015-10-06 17:36 ` Marc Zyngier
  0 siblings, 0 replies; 87+ messages in thread
From: Marc Zyngier @ 2015-10-06 17:36 UTC (permalink / raw)
  To: Thomas Gleixner, Jiang Liu, Jason Cooper, Rafael J. Wysocki
  Cc: linux-acpi, linux-arm-kernel, linux-kernel, Lorenzo Pieralisi,
	Tomasz Nowicki, Hanjun Guo, Suravee Suthikulpanit,
	Graeme Gregory, Jake Oshins

[This patch series used to be called "Making the generic ACPI GSI
layer irqdomain aware", but as I've radically changed my approach to
this problem, I've decided to reset the counters...]

The irqdomain code is not entierely ACPI friendly, as it has some
built-in knowledge of the device-tree. Nothing too harmful, but enough
to scare the ARM ACPI developpers which end up with their own version
of the square wheel. And some of the ramifications actually run deeper
than initially expected.

This series adapts the irqdomain code to use 'struct fwnode_handle'
instead of 'struct device_node' as the identifier for a domain
(compatibility interfaces are of course added). It also introduces a
generic IRQ specifier that firmware interfaces (DT or ACPI) can
directly use to configure interrupts, and allow the ACPI GSI code to
be plugged into this.

As examples, we convert the ARM GIC ACPI support to use irqdomains as
originally intended, and rework the MSI code to also move away from
using device nodes when using irqdomains.

Overall, this gives us a way to use irqdomains on both DT and ACPI
enabled platforms, having very little changes made to the actual
drivers (other than the probing infrastructure). Because we keep the
flow of information between the various layers identical between ACPI
and DT, we immediately benefit from the existing infrastructure.

This has been test-booted on Juno, is based on 4.3-rc4, and available at:

git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/irq-domain-fwnode-v1

Marc Zyngier (16):
  irqdomain: Use an accessor for the of_node field
  irqdomain: Convert irqdomain->of_node to fwnode
  irqdomain: Allow irq domain lookup by fwnode
  irqdomain: Introduce a firmware-specific IRQ specifier structure
  irqchip: Convert all alloc/xlate users from of_node to fwnode
  irqdomain: Introduce irq_create_fwspec_mapping
  irqdomain: Introduce irq_domain_create_{linear,tree}
  irqdomain: Add a fwnode_handle allocator
  acpi/gsi: Always perform an irq domain lookup
  acpi/gsi: Add acpi_set_irq_model to initialize the GSI layer
  irqchip/gic: Get rid of gic_init_bases()
  irqchip/gic: Switch ACPI support to stacked domains
  irqchip/gic: Kill the xlate method
  acpi/gsi: Cleanup acpi_register_gsi
  irqdomain: Introduce irq_domain_create_hierarchy
  irqdomain/msi: Use fwnode instead of of_node

 arch/arm/mach-exynos/suspend.c                |  55 ++++----
 arch/arm/mach-imx/gpc.c                       |  55 ++++----
 arch/arm/mach-omap2/omap-wakeupgen.c          |  55 ++++----
 arch/c6x/platforms/megamod-pic.c              |   2 +-
 arch/mips/cavium-octeon/octeon-irq.c          |   4 +-
 arch/powerpc/platforms/cell/axon_msi.c        |   2 +-
 arch/powerpc/platforms/cell/spider-pic.c      |   9 +-
 arch/powerpc/platforms/pasemi/msi.c           |   6 +-
 arch/powerpc/platforms/powernv/opal-irqchip.c |   2 +-
 arch/powerpc/sysdev/ehv_pic.c                 |   3 +-
 arch/powerpc/sysdev/fsl_msi.c                 |   2 +-
 arch/powerpc/sysdev/i8259.c                   |   3 +-
 arch/powerpc/sysdev/ipic.c                    |   3 +-
 arch/powerpc/sysdev/mpic.c                    |   3 +-
 arch/powerpc/sysdev/mpic_msi.c                |   2 +-
 arch/powerpc/sysdev/qe_lib/qe_ic.c            |   3 +-
 drivers/acpi/gsi.c                            |  54 ++++----
 drivers/base/platform-msi.c                   |   6 +-
 drivers/gpio/gpio-sodaville.c                 |   2 +-
 drivers/irqchip/exynos-combiner.c             |   2 +-
 drivers/irqchip/irq-atmel-aic-common.c        |   2 +-
 drivers/irqchip/irq-crossbar.c                |  62 ++++-----
 drivers/irqchip/irq-gic-v2m.c                 |  23 ++--
 drivers/irqchip/irq-gic-v3-its-pci-msi.c      |   3 +-
 drivers/irqchip/irq-gic-v3-its-platform-msi.c |   3 +-
 drivers/irqchip/irq-gic-v3-its.c              |  20 +--
 drivers/irqchip/irq-gic-v3.c                  |  49 ++++----
 drivers/irqchip/irq-gic.c                     |  94 ++++++++------
 drivers/irqchip/irq-hip04.c                   |   2 +-
 drivers/irqchip/irq-imx-gpcv2.c               |  64 +++++-----
 drivers/irqchip/irq-mtk-sysirq.c              |  49 ++++----
 drivers/irqchip/irq-nvic.c                    |  18 ++-
 drivers/irqchip/irq-s3c24xx.c                 |   4 +-
 drivers/irqchip/irq-tegra.c                   |  55 ++++----
 drivers/irqchip/irq-vf610-mscm-ir.c           |  45 ++++---
 drivers/pci/host/pci-xgene-msi.c              |   2 +-
 drivers/pci/msi.c                             |  14 +--
 drivers/spmi/spmi-pmic-arb.c                  |   2 +-
 include/linux/acpi.h                          |   3 +
 include/linux/fwnode.h                        |   1 +
 include/linux/irqchip/arm-gic.h               |   9 +-
 include/linux/irqdomain.h                     |  86 +++++++++++--
 include/linux/msi.h                           |   9 +-
 kernel/irq/irqdomain.c                        | 173 ++++++++++++++++++++------
 kernel/irq/msi.c                              |   8 +-
 45 files changed, 665 insertions(+), 408 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 87+ messages in thread

end of thread, other threads:[~2015-10-13  8:24 UTC | newest]

Thread overview: 87+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-06 17:36 [PATCH 00/16] Divorcing irqdomain and device_node Marc Zyngier
2015-10-06 17:36 ` Marc Zyngier
2015-10-06 17:36 ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 01/16] irqdomain: Use an accessor for the of_node field Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-09 14:24   ` Thomas Gleixner
2015-10-09 14:24     ` Thomas Gleixner
2015-10-09 14:31     ` Marc Zyngier
2015-10-09 14:31       ` Marc Zyngier
2015-10-12  6:04   ` Hanjun Guo
2015-10-12  6:04     ` Hanjun Guo
2015-10-12  9:30     ` Marc Zyngier
2015-10-12  9:30       ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 02/16] irqdomain: Convert irqdomain->of_node to fwnode Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 03/16] irqdomain: Allow irq domain lookup by fwnode Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-12 18:31   ` Suravee Suthikulpanit
2015-10-12 18:31     ` Suravee Suthikulpanit
2015-10-12 18:31     ` Suravee Suthikulpanit
2015-10-13  7:35     ` Marc Zyngier
2015-10-13  7:35       ` Marc Zyngier
2015-10-13  7:35       ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 04/16] irqdomain: Introduce a firmware-specific IRQ specifier structure Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 05/16] irqchip: Convert all alloc/xlate users from of_node to fwnode Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-12  6:44   ` Hanjun Guo
2015-10-12  6:44     ` Hanjun Guo
2015-10-06 17:36 ` [PATCH 06/16] irqdomain: Introduce irq_create_fwspec_mapping Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 07/16] irqdomain: Introduce irq_domain_create_{linear,tree} Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 08/16] irqdomain: Add a fwnode_handle allocator Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-12 20:32   ` Rafael J. Wysocki
2015-10-12 20:32     ` Rafael J. Wysocki
2015-10-06 17:36 ` [PATCH 09/16] acpi/gsi: Always perform an irq domain lookup Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-12 20:34   ` Rafael J. Wysocki
2015-10-12 20:34     ` Rafael J. Wysocki
2015-10-06 17:36 ` [PATCH 10/16] acpi/gsi: Add acpi_set_irq_model to initialize the GSI layer Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-12 20:36   ` Rafael J. Wysocki
2015-10-12 20:36     ` Rafael J. Wysocki
2015-10-06 17:36 ` [PATCH 11/16] irqchip/gic: Get rid of gic_init_bases() Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 12/16] irqchip/gic: Switch ACPI support to stacked domains Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 13/16] irqchip/gic: Kill the xlate method Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 14/16] acpi/gsi: Cleanup acpi_register_gsi Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-12 20:37   ` Rafael J. Wysocki
2015-10-12 20:37     ` Rafael J. Wysocki
2015-10-06 17:36 ` [PATCH 15/16] irqdomain: Introduce irq_domain_create_hierarchy Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36 ` [PATCH 16/16] irqdomain/msi: Use fwnode instead of of_node Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-06 17:36   ` Marc Zyngier
2015-10-11 21:01 ` [PATCH 00/16] Divorcing irqdomain and device_node Thomas Gleixner
2015-10-11 21:01   ` Thomas Gleixner
2015-10-12  2:40   ` Hanjun Guo
2015-10-12  2:40     ` Hanjun Guo
2015-10-12  7:09     ` Hanjun Guo
2015-10-12  7:09       ` Hanjun Guo
2015-10-12 10:31   ` Marc Zyngier
2015-10-12 10:31     ` Marc Zyngier
2015-10-12 20:38   ` Rafael J. Wysocki
2015-10-12 20:38     ` Rafael J. Wysocki
2015-10-13  8:24     ` Marc Zyngier
2015-10-13  8:24       ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.