Skip to content

AMD IOMMU interrupt remapping support v2

Joerg Roedel linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest27 patches 3 repliesIn review

Changes v1->v2 from the cover letter

* Improved print_iommu_info() function as suggested by Joe Perches
* Fixed all five problems reported by Fengguang Wu from Intel, thanks again for the extensive compile tests
* Fixed other sparse warnings I came across while fixing the compile bug reports
* Dropped patch 3 which introduced another flag into io-apic code. I started to abstract the interrupt remapping support better from the io-apic implementation and will post that as a seperate patch-set (if all goes well probably next week). The new patch-set will make use of the x86_io_apic_ops and x86_msi_ops to get rid of the irq_remapping_enabled checks and branches.
* Rebased to v3.5-rc6

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/27x86/irq: Add data structure to keep AMD specific irq remapping informationarch/x86/include/asm/hw_irq.h arch/x86/kernel/apic/io_apic.c drivers/iommu/intel_irq_remapping.c+15 -32 replies
2/27x86/irq: Introduce irq_cfg->remappedarch/x86/include/asm/hw_irq.h arch/x86/kernel/apic/io_apic.c drivers/iommu/intel_irq_remapping.c+6 -10 replies
3/27iommu/amd: Fix sparse warningsdrivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_init.c drivers/iommu/amd_iommu_types.h +2 more+19 -141 reply
4/27iommu/amd: Use acpi_get_table instead of acpi_table_parsedrivers/iommu/amd_iommu_init.c+66 -520 replies
5/27iommu/amd: Split out PCI related parts of IOMMU initializationdrivers/iommu/amd_iommu_init.c drivers/iommu/amd_iommu_types.h+121 -1080 replies
6/27iommu/amd: Move informational prinks out of iommu_enabledrivers/iommu/amd_iommu_init.c+27 -170 replies
7/27iommu/amd: Introduce early_amd_iommu_init routinedrivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_init.c+23 -160 replies
8/27iommu/amd: Split enable_iommus() routinedrivers/iommu/amd_iommu_init.c+18 -30 replies
9/27iommu/amd: Move unmap_flush message to amd_iommu_init_dma_ops()drivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_init.c+5 -80 replies
10/27iommu/amd: Introduce amd_iommu_init_dma routinedrivers/iommu/amd_iommu_init.c+20 -70 replies
11/27iommu/amd: Convert iommu initialization to state machinedrivers/iommu/amd_iommu_init.c+109 -640 replies
12/27iommu/amd: Keep track of HPET and IOAPIC device idsdrivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_init.c drivers/iommu/amd_iommu_types.h+100 -20 replies
13/27iommu/amd: Add slab-cache for irq remapping tablesdrivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_init.c drivers/iommu/amd_iommu_types.h +1 more+38 -00 replies
14/27iommu/amd: Allocate data structures to keep track of irq remapping tablesdrivers/iommu/amd_iommu_init.c drivers/iommu/amd_iommu_types.h+25 -00 replies
15/27iommu/amd: Check if IOAPIC information is correctdrivers/iommu/Kconfig drivers/iommu/amd_iommu_init.c+25 -40 replies
16/27iommu/amd: Split device table initialization into irq and dma partdrivers/iommu/amd_iommu_init.c+18 -10 replies
17/27iommu/amd: Make sure IOMMU is not considered to translate itselfdrivers/iommu/amd_iommu_init.c+7 -00 replies
18/27iommu/amd: Add IRTE invalidation routinedrivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_types.h+28 -00 replies
19/27iommu/amd: Add routines to manage irq remapping tablesdrivers/iommu/amd_iommu.c+230 -00 replies
20/27iommu/amd: Add IOAPIC remapping routinesdrivers/iommu/amd_iommu.c+119 -00 replies
21/27iommu/amd: Implement MSI routines for interrupt remappingdrivers/iommu/amd_iommu.c+74 -00 replies
22/27iommu/amd: Add call-back routine for HPET MSIdrivers/iommu/amd_iommu.c+26 -00 replies
23/27iommu/amd: Add initialization routines for AMD interrupt remappingdrivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_init.c drivers/iommu/amd_iommu_proto.h +1 more+69 -00 replies
24/27iommu/amd: Make sure irq remapping still works on dma init failuredrivers/iommu/amd_iommu_init.c+31 -90 replies
25/27iommu/irq: Use amd_iommu_irq_ops if supporteddrivers/iommu/irq_remapping.c+5 -00 replies
26/27iommu/amd: Print message to system log when irq remapping is enableddrivers/iommu/amd_iommu_init.c+2 -00 replies
27/27iommu/amd: Report irq remapping through IOMMU-APIdrivers/iommu/amd_iommu.c+2 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/27] AMD IOMMU interrupt remapping support v2

Hi,

here is the second and revised patch-set to add interrupt remapping support to the AMD IOMMU driver.

Changes v1->v2:

* Improved print_iommu_info() function as suggested by Joe Perches
* Fixed all five problems reported by Fengguang Wu from Intel, thanks again for the extensive compile tests
* Fixed other sparse warnings I came across while fixing the compile bug reports
* Dropped patch 3 which introduced another flag into io-apic code. I started to abstract the interrupt remapping support better from the io-apic implementation and will post that as a seperate patch-set (if all goes well probably next week). The new patch-set will make use of the x86_io_apic_ops and x86_msi_ops to get rid of the irq_remapping_enabled checks and branches.
* Rebased to v3.5-rc6

Please review. Feedback appreciated :-)

Regards,

Joerg

Diffstat:

 arch/x86/include/asm/hw_irq.h       |   15 +-
 arch/x86/kernel/apic/io_apic.c      |    2 +-
 drivers/iommu/Kconfig               |    2 +-
 drivers/iommu/amd_iommu.c           |  509 +++++++++++++++++++++-
 drivers/iommu/amd_iommu_init.c      |  790 ++++++++++++++++++++++++-----------
 drivers/iommu/amd_iommu_proto.h     |    8 +
 drivers/iommu/amd_iommu_types.h     |   66 ++-
 drivers/iommu/amd_iommu_v2.c        |    2 +-
 drivers/iommu/intel_irq_remapping.c |    6 +-
 drivers/iommu/irq_remapping.c       |   10 +
 drivers/iommu/irq_remapping.h       |    5 +
 11 files changed, 1167 insertions(+), 248 deletions(-)