genirq: Debuggability, consolidation and managed affinities
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest55 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/55 | x86/apic: Add name to irq chiparch/ | +1 | 0 replies | |
| 2/55 | iommu/amd: Add name to irq chipdrivers/ | +5 | 1 reply | |
| 3/55 | iommu/vt-d: Add name to irq chipdrivers/ | +5 | 1 reply | |
| 4/55 | genirq/msi: Prevent overwriting domain namekernel/ | +2 | 0 replies | |
| 5/55 | genirq: Allow fwnode to carry name information onlyinclude/ kernel/ | +100 | 0 replies | |
| 6/55 | x86/vector: Create named irq domainarch/ | +7 | 0 replies | |
| 7/55 | x86/ioapic: Create named irq domainarch/ | +20 | 0 replies | |
| 8/55 | x86/htirq: Create named domainarch/ | +16 | 0 replies | |
| 9/55 | x86/uv: Create named irq domainarch/ | +13 | 0 replies | |
| 10/55 | x86/msi: Provide new iommu irqdomain interfacearch/ arch/ | +17 | 0 replies | |
| 11/55 | iommu/vt-d: Use named irq domain interfacedrivers/ | +16 | 1 reply | |
| 12/55 | iommu/amd: Use named irq domain interfacedrivers/ | +10 | 1 reply | |
| 13/55 | x86/msi: Remove unused remap irq domain interfacearch/ arch/ | +0 | 0 replies | |
| 14/55 | x86/msi: Create named irq domainsarch/ | +33 | 0 replies | |
| 15/55 | PCI: vmd: Create named irq domaindrivers/ | +7 | 3 replies | |
| 16/55 | genirq/irqdomain: Add map counterinclude/ kernel/ | +6 | 0 replies | |
| 17/55 | genirq/debugfs: Add proper debugfs interfaceinclude/ include/ kernel/ +6 more | +345 | 0 replies | |
| 18/55 | genirq: Add missing comment for IRQD_STARTEDinclude/ | +1 | 0 replies | |
| 19/55 | genirq: Provide irq_fixup_move_pending()include/ kernel/ | +35 | 2 replies | |
| 20/55 | x86/irq: Cleanup pending irq move in fixup_irqs()arch/ | +21 | 0 replies | |
| 21/55 | genirq: Remove mask argument from setup_affinity()kernel/ kernel/ kernel/ | +29 | 0 replies | |
| 22/55 | genirq: Rename setup_affinity() to irq_setup_affinity()kernel/ kernel/ | +7 | 0 replies | |
| 23/55 | genirq: Move initial affinity setup to irq_startup()kernel/ kernel/ | +8 | 0 replies | |
| 24/55 | genirq: Move pending helpers to internal.hkernel/ kernel/ | +38 | 0 replies | |
| 25/55 | genirq/cpuhotplug: Remove irq disabling logickernel/ | +4 | 0 replies | |
| 26/55 | genirq/cpuhotplug: Dont claim success on errorkernel/ | +4 | 0 replies | |
| 27/55 | genirq/cpuhotplug: Reorder check logickernel/ | +20 | 0 replies | |
| 28/55 | genirq/cpuhotplug: Do not migrated shutdown irqskernel/ | +8 | 0 replies | |
| 29/55 | genirq/cpuhotplug: Add support for cleaning up move in progressarch/ include/ kernel/ +1 more | +37 | 0 replies | |
| 30/55 | genirq/cpuhotplug: Add support for conditional maskingkernel/ | +10 | 0 replies | |
| 31/55 | genirq/cpuhotplug: Set force affinity flag on hotplug migrationkernel/ | +1 | 0 replies | |
| 32/55 | x86/irq: Restructure fixup_irqs()arch/ | +20 | 2 replies | |
| 33/55 | x86/irq: Use irq_migrate_all_off_this_cpu()arch/ arch/ | +3 | 0 replies | |
| 34/55 | genirq: Move irq_fixup_move_pending() to coreinclude/ kernel/ | +5 | 0 replies | |
| 35/55 | genirq: Remove pointless arg from show_irq_affinitykernel/ | +3 | 0 replies | |
| 36/55 | genirq: Remove pointless gfp argumentkernel/ | +7 | 0 replies | |
| 37/55 | genirq/proc: Replace ever repeating type castkernel/ | +5 | 0 replies | |
| 38/55 | genirq: Introduce effective affinity maskinclude/ kernel/ kernel/ +2 more | +134 | 0 replies | |
| 39/55 | genirq/cpuhotplug: Use effective affinity maskkernel/ | +11 | 0 replies | |
| 40/55 | x86/apic: Move flat_cpu_mask_to_apicid_and() into C sourcearch/ arch/ | +22 | 0 replies | |
| 41/55 | x86/uv: Use default_cpu_mask_to_apicid_and()arch/ | +4 | 0 replies | |
| 42/55 | x86/apic: Move online masking to core codearch/ arch/ arch/ | +22 | 0 replies | |
| 43/55 | x86/apic: Move cpumask and to core codearch/ arch/ arch/ +9 more | +29 | 0 replies | |
| 44/55 | x86/apic: Add irq_data argument to apic->cpu_mask_to_apicid()arch/ arch/ arch/ +2 more | +32 | 0 replies | |
| 45/55 | xen/events: Add support for effective affinity maskdrivers/ | +5 | 0 replies | |
| 46/55 | x86/apic: Implement effective irq mask updatearch/ arch/ arch/ | +8 | 0 replies | |
| 47/55 | genirq: Introduce IRQD_MANAGED_SHUTDOWNinclude/ kernel/ | +18 | 0 replies | |
| 48/55 | genirq: Split out irq_startup() codekernel/ | +18 | 0 replies | |
| 49/55 | genirq: Add force argument to irq_startup()kernel/ kernel/ kernel/ +1 more | +14 | 0 replies | |
| 50/55 | genirq: Handle managed irqs gracefully in irq_startup()include/ kernel/ | +62 | 0 replies | |
| 51/55 | genirq/cpuhotplug: Handle managed IRQs on CPU hotpluginclude/ include/ kernel/ +1 more | +56 | 0 replies | |
| 52/55 | genirq: Introduce IRQD_SINGLE_TARGET flaginclude/ kernel/ | +17 | 0 replies | |
| 53/55 | genirq/cpuhotplug: Avoid irq affinity setting for single targetskernel/ | +10 | 0 replies | |
| 54/55 | x86/apic: Mark single target interruptsarch/ | +7 | 0 replies | |
| 55/55 | genirq/affinity: Assign vectors to all present CPUskernel/ | +63 | 0 replies |
Reviews trailers per patch
4 of 55 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig | Joerg Roedel |
|---|---|---|
| 1/55 | ||
| 2/55 | A-b | |
| 3/55 | A-b | |
| 4/55 | ||
| 5/55 | ||
| 6/55 | ||
| 7/55 | ||
| 8/55 | ||
| 9/55 | ||
| 10/55 | ||
| 11/55 | A-b | |
| 12/55 | A-b | |
| 13/55 | ||
| 14/55 | ||
| 15/55 | ||
| 16/55 | ||
| 17/55 | ||
| 18/55 | ||
| 19/55 | ||
| 20/55 | ||
| 21/55 | ||
| 22/55 | ||
| 23/55 | ||
| 24/55 | ||
| 25/55 | ||
| 26/55 | ||
| 27/55 | ||
| 28/55 | ||
| 29/55 | ||
| 30/55 | ||
| 31/55 | ||
| 32/55 | ||
| 33/55 | ||
| 34/55 | ||
| 35/55 | ||
| 36/55 | ||
| 37/55 | ||
| 38/55 | ||
| 39/55 | ||
| 40/55 | ||
| 41/55 | ||
| 42/55 | ||
| 43/55 | ||
| 44/55 | ||
| 45/55 | ||
| 46/55 | ||
| 47/55 | ||
| 48/55 | ||
| 49/55 | ||
| 50/55 | ||
| 51/55 | Originally-by | |
| 52/55 | ||
| 53/55 | ||
| 54/55 | ||
| 55/55 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch 00/55] genirq: Debuggability, consolidation and managed affinities
This started out with 5 patches from Christoph who wanted to add a mechanism for interrupts with managed affinities to spread them over all present CPUs and instead of migrating them, shut them down into managed shutdown state when the last CPU in the affinity set goes offline and then resume them when a CPU to which belongs to the affinity set comes online again. See:
http://lkml.kernel.org/r/[email protected]
After staring at it for a while it became clear that the approach is not sufficient to deal with all the oddities of the x86 interrupt handling.
The mechanism to migrate interrupts inside the affinity set or shut them down when the last CPU of the set goes offline is the same as the general cpu hotplug migration mechanism. x86 does not use yet the generic cpu hotplug irq migration code, so supporting this feature would require changes to both architecture and core code. After staring long enough, I decided to extend the core migration code so it can handle the x86 oddities as well. There are a few subtle changes in that code which might affect the existing users (ARM64/POWERPC), but AFAICT they should not change the behaviour. Please look carefully.
While doing this I stumbled over a bunch of other details, which I addressed in seperate patches. Once again the missing ability to debug all of this turned out to be a major pain. So I hacked a quick debugfs tool, which helped me to sort out the details. I rewrote that proper and it's included in the start of the series. This also required to extend the fwnode so x86 can supply unique domain names on domain creation.
The series applies on
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core
and is also available via git from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.irq
Thanks,
tglx
----
arch/x86/Kconfig | 2 arch/x86/include/asm/apic.h | 36 +---- arch/x86/include/asm/irq.h | 1 arch/x86/include/asm/irq_remapping.h | 3 arch/x86/kernel/apic/apic.c | 35 +++-- arch/x86/kernel/apic/apic_flat_64.c | 4 arch/x86/kernel/apic/apic_noop.c | 2 arch/x86/kernel/apic/apic_numachip.c | 4 arch/x86/kernel/apic/bigsmp_32.c | 2 arch/x86/kernel/apic/htirq.c | 21 ++- arch/x86/kernel/apic/io_apic.c | 22 +++ arch/x86/kernel/apic/msi.c | 55 ++++++-- arch/x86/kernel/apic/probe_32.c | 2 arch/x86/kernel/apic/vector.c | 49 +++++-- arch/x86/kernel/apic/x2apic_cluster.c | 36 ++--- arch/x86/kernel/apic/x2apic_phys.c | 2 arch/x86/kernel/apic/x2apic_uv_x.c | 26 +--- arch/x86/kernel/irq.c | 78 ------------ arch/x86/platform/uv/uv_irq.c | 18 ++ arch/x86/xen/apic.c | 2 drivers/iommu/amd_iommu.c | 22 ++- drivers/iommu/intel_irq_remapping.c | 31 +++- drivers/pci/host/vmd.c | 8 + drivers/xen/events/events_base.c | 6 include/linux/cpuhotplug.h | 1 include/linux/irq.h | 61 +++++++++ include/linux/irqdesc.h | 4 include/linux/irqdomain.h | 37 +++++ kernel/cpu.c | 5 kernel/irq/Kconfig | 15 ++ kernel/irq/Makefile | 1 kernel/irq/affinity.c | 76 +++++++++-- kernel/irq/autoprobe.c | 4 kernel/irq/chip.c | 91 ++++++++++++-- kernel/irq/cpuhotplug.c | 150 +++++++++++++++++++---- kernel/irq/debugfs.c | 220 ++++++++++++++++++++++++++++++++++ kernel/irq/internals.h | 100 +++++++++++++++ kernel/irq/irqdesc.c | 30 +++- kernel/irq/irqdomain.c | 170 ++++++++++++++++++++++++-- kernel/irq/manage.c | 102 ++++----------- kernel/irq/migration.c | 30 ++++ kernel/irq/msi.c | 3 kernel/irq/proc.c | 110 ++++++++++++++--- 43 files changed, 1294 insertions(+), 383 deletions(-)