Files
linux/include/linux
Marc Zyngier fdf35d1ad4 UPSTREAM: irqchip: Add per-cpu interrupt partitioning library
We've unfortunately started seeing a situation where percpu interrupts
are partitioned in the system: one arbitrary set of CPUs has an
interrupt connected to a type of device, while another disjoint
set of CPUs has the same interrupt connected to another type of device.

This makes it impossible to have a device driver requesting this interrupt
using the current percpu-interrupt abstraction, as the same interrupt number
is now potentially claimed by at least two drivers, and we forbid interrupt
sharing on per-cpu interrupt.

A solution to this is to turn things upside down. Let's assume that our
system describes all the possible partitions for a given interrupt, and
give each of them a unique identifier. It is then possible to create
a namespace where the affinity identifier itself is a form of interrupt
number. At this point, it becomes easy to implement a set of partitions
as a cascaded irqchip, each affinity identifier being the HW irq.

This allows us to keep a number of nice properties:
- Each partition results in a separate percpu-interrupt (with a restrictied
  affinity), which keeps drivers happy.
- Because the underlying interrupt is still per-cpu, the overhead of
  the indirection can be kept pretty minimal.
- The core code can ignore most of that crap.

For that purpose, we implement a small library that deals with some of
the boilerplate code, relying on platform-specific drivers to provide
a description of the affinity sets and a set of callbacks.

Conflicts:
	drivers/irqchip/Kconfig
	drivers/irqchip/Makefile

Change-Id: Ie6b2bc8c4c152f0dcd3fbcab8950fae781338322
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: devicetree@vger.kernel.org
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Rob Herring <robh+dt@kernel.org>
Link: http://lkml.kernel.org/r/1460365075-7316-4-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
(cherry picked from commit 9e2c986cb4)
2016-07-01 14:20:47 +08:00
..
2015-11-11 15:57:28 +08:00
2016-03-03 15:07:26 -08:00
2015-10-01 12:48:11 -07:00
2015-06-25 11:49:31 +03:00
2015-10-17 21:22:08 -07:00
2015-10-07 18:08:15 +01:00
2015-11-11 19:52:00 +08:00
2015-11-11 15:57:28 +08:00
2016-05-30 14:24:17 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 19:52:00 +08:00
2015-11-11 19:52:00 +08:00
2015-11-11 19:52:00 +08:00
2015-11-11 15:54:30 +08:00
2015-05-13 12:04:55 -05:00
2015-03-25 20:28:11 -04:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2016-03-09 15:34:52 -08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-07 10:40:47 -07:00
2016-05-18 17:06:37 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2016-02-16 13:52:32 -08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-02-12 18:54:15 -08:00
2015-09-08 15:35:28 -07:00
2015-11-11 15:57:28 +08:00
2015-10-18 10:14:39 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-01-21 19:21:30 +01:00
2014-11-10 09:27:30 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:54:30 +08:00
2014-12-31 13:06:50 -05:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-06-24 17:49:45 -07:00
2016-04-20 15:42:12 +09:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2016-02-16 13:50:55 -08:00
2015-05-12 10:46:53 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:57:28 +08:00
2015-03-16 21:45:54 +11:00
2015-05-05 13:40:42 -06:00
2016-04-20 15:42:02 +09:00
2015-10-23 05:44:28 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:57:28 +08:00
2015-10-01 15:06:43 +02:00
2015-06-25 12:06:45 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-08-18 15:49:15 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-07-28 08:50:42 +01:00
2015-11-11 15:57:28 +08:00
2015-04-29 17:17:17 -05:00
2015-11-11 15:57:28 +08:00
2015-11-23 09:44:58 +01:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-04-14 16:49:05 -07:00
2015-11-11 15:57:28 +08:00
2015-06-24 17:49:41 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-10-20 22:10:45 +08:00
2015-07-21 10:39:05 -07:00
2015-03-24 14:32:56 +08:00
2015-11-11 15:57:28 +08:00
2015-06-25 04:20:04 -04:00
2015-11-11 15:57:28 +08:00
2016-03-03 15:07:28 -08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-03-11 17:56:28 -04:00
2014-11-04 13:29:38 +00:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-11-06 17:50:42 -08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-04-12 21:03:31 +02:00
2015-01-25 23:17:28 -05:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2016-04-08 11:24:28 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:57:28 +08:00
2015-10-09 17:00:32 -04:00
2015-10-06 17:08:19 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:54:30 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-03-10 16:23:18 +08:00
2015-11-11 15:57:28 +08:00
2015-05-26 15:23:23 +02:00
2015-06-25 01:13:43 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-03-24 14:32:56 +08:00
2015-02-13 21:21:41 -08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-06-25 17:00:39 -07:00
2015-11-05 14:36:09 -05:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-08-17 11:25:28 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-10-19 01:01:21 +02:00
2016-04-12 09:08:49 -07:00
2015-04-11 22:29:44 -04:00
2015-11-23 09:44:58 +01:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-12-04 08:38:42 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-12-13 14:30:59 -08:00
2015-03-24 09:48:14 -07:00
2015-11-11 15:57:28 +08:00
2015-11-13 20:34:33 -05:00
2015-09-08 15:35:28 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00