Skip to content

RFC Enable hierarchy irqdomian on x86 platforms

Jiang Liu linux-acpi linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest28 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/28x86, irq: Kill unused setup_timer_IRQ0_pin()arch/x86/include/asm/io_apic.h arch/x86/kernel/apic/io_apic.c arch/x86/platform/intel-mid/intel-mid.c+2 -181 reply
2/28x86, irq: Prepare IOAPIC interfaces to support hierarchy irqdomainarch/x86/include/asm/hw_irq.h arch/x86/include/asm/io_apic.h arch/x86/kernel/acpi/boot.c +4 more+48 -140 replies
3/28x86, irq: Implement callbacks to enable hierarchy irqdomain on IOAPICsarch/x86/include/asm/io_apic.h arch/x86/kernel/apic/io_apic.c+238 -50 replies
4/28x86, irq: Refine the way to allocate irq_cfg for legacy IRQsarch/x86/kernel/apic/io_apic.c arch/x86/kernel/apic/vector.c+42 -140 replies
5/28x86, irq: Convert IOAPIC to use hierarchy irqdomain interfacesarch/x86/kernel/acpi/boot.c arch/x86/kernel/apic/io_apic.c arch/x86/kernel/devicetree.c +5 more+256 -1210 replies
6/28x86, irq: Kill unused old IOAPIC irqdomain interfacesarch/x86/include/asm/io_apic.h arch/x86/kernel/apic/io_apic.c+0 -2030 replies
7/28x86, irq: Kill x86_io_apic_ops.print_entries and related interfacesarch/x86/include/asm/io_apic.h arch/x86/include/asm/x86_init.h arch/x86/kernel/apic/io_apic.c +2 more+4 -160 replies
8/28x86, irq: Kill x86_io_apic_ops.setup_entry and related interfacesarch/x86/include/asm/io_apic.h arch/x86/include/asm/irq_remapping.h arch/x86/include/asm/x86_init.h +3 more+0 -580 replies
9/28x86, irq: Kill x86_io_apic_ops.set_affinity and related interfacesarch/x86/include/asm/io_apic.h arch/x86/include/asm/x86_init.h arch/x86/kernel/apic/io_apic.c +2 more+1 -480 replies
10/28x86, irq: Kill x86_io_apic_ops.eoi_ioapic_pin and related interfacesarch/x86/include/asm/io_apic.h arch/x86/include/asm/x86_init.h arch/x86/kernel/apic/io_apic.c +2 more+1 -650 replies
11/28x86, irq: Kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQarch/x86/Kconfig arch/x86/kernel/apic/vector.c+0 -350 replies
12/28x86: Clean up unused forward declarations in x86_init.harch/x86/include/asm/x86_init.h+0 -60 replies
13/28x86: irq_remapping: Clean up unsued codearch/x86/include/asm/irq_remapping.h arch/x86/kernel/apic/vector.c drivers/iommu/irq_remapping.c+0 -600 replies
14/28iommu/vt-d: Clean up unsued codedrivers/iommu/intel_irq_remapping.c+1 -1850 replies
15/28iommu/amd: Clean up unsued codedrivers/iommu/amd_iommu.c+0 -1440 replies
16/28x86: irq_remapping: Clean up unused interfacesdrivers/iommu/irq_remapping.h+0 -160 replies
17/28x86, irq: Kill irq_cfg.irq_remappedarch/x86/include/asm/hw_irq.h drivers/iommu/amd_iommu.c drivers/iommu/intel_irq_remapping.c+0 -40 replies
18/28iommu/vt-d: Move struct irq_2_iommu into intel_irq_remapping.carch/x86/include/asm/hw_irq.h drivers/iommu/intel_irq_remapping.c+7 -90 replies
19/28iommu/amd: Move struct irq_2_irte into amd_iommu.carch/x86/include/asm/hw_irq.h drivers/iommu/amd_iommu.c+5 -130 replies
20/28x86, irq: Move irq_cfg.irq_2_pin into io_apic.carch/x86/include/asm/hw_irq.h arch/x86/kernel/apic/io_apic.c arch/x86/kernel/apic/vector.c+82 -1030 replies
21/28x86, irq: Kill struct io_apic_irq_attrarch/x86/include/asm/io_apic.h arch/x86/kernel/apic/io_apic.c+0 -170 replies
22/28x86, irq: Kill x86_io_apic_ops.write and x86_io_apic_ops.modifyarch/x86/include/asm/io_apic.h arch/x86/include/asm/x86_init.h arch/x86/kernel/apic/io_apic.c +1 more+4 -190 replies
23/28x86, irq: Clean up io_apic.harch/x86/include/asm/io_apic.h arch/x86/kernel/apic/io_apic.c+9 -140 replies
24/28x86, irq: Kill unused alloc_irq_and_cfg_at()arch/x86/include/asm/hw_irq.h arch/x86/kernel/apic/vector.c+0 -220 replies
25/28x86, irq: Change functions only used in vector.c as staticarch/x86/include/asm/hw_irq.h arch/x86/kernel/apic/vector.c+4 -60 replies
26/28x86, irq: Kill function apic_set_affinity()arch/x86/include/asm/hw_irq.h arch/x86/kernel/apic/vector.c+3 -390 replies
27/28x86, irq: Introduce mechanism to support different vector allocation policiesarch/x86/include/asm/hw_irq.h arch/x86/kernel/apic/vector.c+69 -90 replies
28/28x86, irq: Add kernel parameter vector_alloc to set CPU vector allocation policyDocumentation/kernel-parameters.txt arch/x86/kernel/apic/vector.c+17 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC Part3 v1 00/28] Enable hierarchy irqdomian on x86 platforms

This is the last part to enable support of hierarchy domain on x86 platforms.

It first converts IOAPIC to support hierarchy irqdomain, then cleans up all unused code and interfaces. It also introduces a kernel boot parameter to configure CPU vector allocation policies.

It's based on my previous patch set at:
https://lkml.org/lkml/2014/9/26/538
And you may access it at:
https://github.com/jiangliu/linux.git irqdomain/p3v1

It has been tested on Intel 64-bit server and 32-bit laptop. It also passes Fengguang's 0day tests. Helps are welcomed for testing:
1) Intel MID platform
2) Intel CE or OLPC platforms

Patch 1-6 convert IOAPIC to support hierarchy irqdomain. Patch 7-16,22 clean up unused code, x86_io_apic_ops and header files. Patch 17-20 simplify struct irq_cfg.
Patch 21, 23-26 clean up code and interfaces further. Patch 27-28 introduces a mechanism to configure CPU vector allocation
policies.

Jiang Liu (28):
x86, irq: Kill unused setup_timer_IRQ0_pin()
x86, irq: Prepare IOAPIC interfaces to support hierarchy irqdomain x86, irq: Implement callbacks to enable hierarchy irqdomain on
IOAPICs
x86, irq: Refine the way to allocate irq_cfg for legacy IRQs x86, irq: Convert IOAPIC to use hierarchy irqdomain interfaces x86, irq: Kill unused old IOAPIC irqdomain interfaces x86, irq: Kill x86_io_apic_ops.print_entries and related interfaces x86, irq: Kill x86_io_apic_ops.setup_entry and related interfaces x86, irq: Kill x86_io_apic_ops.set_affinity and related interfaces x86, irq: Kill x86_io_apic_ops.eoi_ioapic_pin and related interfaces x86, irq: Kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ
x86: Clean up unused forward declarations in x86_init.h
x86: irq_remapping: Clean up unsued code
iommu/vt-d: Clean up unsued code
iommu/amd: Clean up unsued code
x86: irq_remapping: Clean up unused interfaces
x86, irq: Kill irq_cfg.irq_remapped
iommu/vt-d: Move struct irq_2_iommu into intel_irq_remapping.c iommu/amd: Move struct irq_2_irte into amd_iommu.c
x86, irq: Move irq_cfg.irq_2_pin into io_apic.c
x86, irq: Kill struct io_apic_irq_attr
x86, irq: Kill x86_io_apic_ops.write and x86_io_apic_ops.modify x86, irq: Clean up io_apic.h
x86, irq: Kill unused alloc_irq_and_cfg_at()
x86, irq: Change functions only used in vector.c as static x86, irq: Kill function apic_set_affinity()
x86, irq: Introduce mechanism to support different vector allocation
policies
x86, irq: Add kernel parameter vector_alloc to set CPU vector
allocation policy

 Documentation/kernel-parameters.txt                |    6 +
 arch/x86/Kconfig                                   |    1 -
 arch/x86/include/asm/hw_irq.h                      |   50 +-
 arch/x86/include/asm/io_apic.h                     |   81 +-
 arch/x86/include/asm/irq_remapping.h               |   36 -
 arch/x86/include/asm/x86_init.h                    |   16 -
 arch/x86/kernel/acpi/boot.c                        |   19 +-
 arch/x86/kernel/apic/io_apic.c                     |  926 +++++++++++---------
 arch/x86/kernel/apic/vector.c                      |  226 ++---
 arch/x86/kernel/devicetree.c                       |   39 +-
 arch/x86/kernel/mpparse.c                          |    6 +-
 arch/x86/kernel/x86_init.c                         |    6 -
 arch/x86/pci/intel_mid_pci.c                       |    6 +-
 .../platform/intel-mid/device_libs/platform_wdt.c  |    5 +-
 arch/x86/platform/intel-mid/intel-mid.c            |    2 +
 arch/x86/platform/intel-mid/sfi.c                  |    6 +-
 arch/x86/platform/sfi/sfi.c                        |    5 +-
 drivers/iommu/amd_iommu.c                          |  150 +---
 drivers/iommu/intel_irq_remapping.c                |  202 +----
 drivers/iommu/irq_remapping.c                      |   84 --
 drivers/iommu/irq_remapping.h                      |   16 -
 21 files changed, 709 insertions(+), 1179 deletions(-)
Signature · 1 line
1.7.10.4