mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/7] Partitioned percpu IRQ rework
@ 2018-04-24 14:36 Marc Zyngier
  2018-04-24 14:36 ` [PATCH 1/7] genirq/debugfs: Print percpu affinity for percpu_devid interrupts Marc Zyngier
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Marc Zyngier @ 2018-04-24 14:36 UTC (permalink / raw)
  To: Thomas Gleixner, Jason Cooper; +Cc: linux-kernel

Partitioned percpu interrupts are a very niche sport, even in the ARM
world. They occur when each CPU have a private device connected to a
per-CPU interrupt, but not all the devices are the same.

The best example of this occurs on the Rockchip rk3399 SoC, where all
the CPUs have a PMU connected to the same PPI (very good), except that
because this is a big-little system, we end-up with two different PMUs
(quite bad).

We already have some code to deal with this, but it integrates badly
with the debug infrastructure, and makes assumptions about the trigger
of the source interrupt (see the use of IRQ_TYPE_NONE in the GICv3
driver).

This series provides a better integration with debugfs, and cleans up
some of the most horrible parts of this code by simply moving the
plugging of the partition to the activate callback.

This has been tested on a (specially hack-up) KVM guest.

Thanks,

	M.

Marc Zyngier (7):
  genirq/debugfs: Print percpu affinity for percpu_devid interrupts
  genirq/debugfs: Use irq_print_chip method if available
  genirq/debugfs: Allow irq domain name to be overriden
  irqchip/partition-percpu: Override domain name in debugfs
  irqchip/partition-percpu: Refactor backend method calling
  irqchip/partition-percpu: Allow chained_desc to be NULL
  irqchip/partition-percpu: Move allocation of chained interrupt to
    activate

 drivers/irqchip/irq-gic-v3.c                 |  31 ++----
 drivers/irqchip/irq-partition-percpu.c       | 147 ++++++++++++++++++---------
 include/linux/irqchip/irq-partition-percpu.h |   4 +-
 include/linux/irqdomain.h                    |   1 +
 kernel/irq/debugfs.c                         |  13 ++-
 kernel/irq/irqdomain.c                       |  14 +++
 6 files changed, 138 insertions(+), 72 deletions(-)

-- 
2.14.2

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

end of thread, other threads:[~2018-04-24 14:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-24 14:36 [PATCH 0/7] Partitioned percpu IRQ rework Marc Zyngier
2018-04-24 14:36 ` [PATCH 1/7] genirq/debugfs: Print percpu affinity for percpu_devid interrupts Marc Zyngier
2018-04-24 14:36 ` [PATCH 2/7] genirq/debugfs: Use irq_print_chip method if available Marc Zyngier
2018-04-24 14:36 ` [PATCH 3/7] genirq/debugfs: Allow irq domain name to be overriden Marc Zyngier
2018-04-24 14:36 ` [PATCH 4/7] irqchip/partition-percpu: Override domain name in debugfs Marc Zyngier
2018-04-24 14:36 ` [PATCH 5/7] irqchip/partition-percpu: Refactor backend method calling Marc Zyngier
2018-04-24 14:36 ` [PATCH 6/7] irqchip/partition-percpu: Allow chained_desc to be NULL Marc Zyngier
2018-04-24 14:36 ` [PATCH 7/7] irqchip/partition-percpu: Move allocation of chained interrupt to activate Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®