AMD IOMMU interrupt remapping support v2
Get series with b4
b4 am [email protected]Versions newest first
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/27 | x86/irq: Add data structure to keep AMD specific irq remapping informationarch/ arch/ drivers/ | +15 | 2 replies | |
| 2/27 | x86/irq: Introduce irq_cfg->remappedarch/ arch/ drivers/ | +6 | 0 replies | |
| 3/27 | iommu/amd: Fix sparse warningsdrivers/ drivers/ drivers/ +2 more | +19 | 1 reply | |
| 4/27 | iommu/amd: Use acpi_get_table instead of acpi_table_parsedrivers/ | +66 | 0 replies | |
| 5/27 | iommu/amd: Split out PCI related parts of IOMMU initializationdrivers/ drivers/ | +121 | 0 replies | |
| 6/27 | iommu/amd: Move informational prinks out of iommu_enabledrivers/ | +27 | 0 replies | |
| 7/27 | iommu/amd: Introduce early_amd_iommu_init routinedrivers/ drivers/ | +23 | 0 replies | |
| 8/27 | iommu/amd: Split enable_iommus() routinedrivers/ | +18 | 0 replies | |
| 9/27 | iommu/amd: Move unmap_flush message to amd_iommu_init_dma_ops()drivers/ drivers/ | +5 | 0 replies | |
| 10/27 | iommu/amd: Introduce amd_iommu_init_dma routinedrivers/ | +20 | 0 replies | |
| 11/27 | iommu/amd: Convert iommu initialization to state machinedrivers/ | +109 | 0 replies | |
| 12/27 | iommu/amd: Keep track of HPET and IOAPIC device idsdrivers/ drivers/ drivers/ | +100 | 0 replies | |
| 13/27 | iommu/amd: Add slab-cache for irq remapping tablesdrivers/ drivers/ drivers/ +1 more | +38 | 0 replies | |
| 14/27 | iommu/amd: Allocate data structures to keep track of irq remapping tablesdrivers/ drivers/ | +25 | 0 replies | |
| 15/27 | iommu/amd: Check if IOAPIC information is correctdrivers/ drivers/ | +25 | 0 replies | |
| 16/27 | iommu/amd: Split device table initialization into irq and dma partdrivers/ | +18 | 0 replies | |
| 17/27 | iommu/amd: Make sure IOMMU is not considered to translate itselfdrivers/ | +7 | 0 replies | |
| 18/27 | iommu/amd: Add IRTE invalidation routinedrivers/ drivers/ | +28 | 0 replies | |
| 19/27 | iommu/amd: Add routines to manage irq remapping tablesdrivers/ | +230 | 0 replies | |
| 20/27 | iommu/amd: Add IOAPIC remapping routinesdrivers/ | +119 | 0 replies | |
| 21/27 | iommu/amd: Implement MSI routines for interrupt remappingdrivers/ | +74 | 0 replies | |
| 22/27 | iommu/amd: Add call-back routine for HPET MSIdrivers/ | +26 | 0 replies | |
| 23/27 | iommu/amd: Add initialization routines for AMD interrupt remappingdrivers/ drivers/ drivers/ +1 more | +69 | 0 replies | |
| 24/27 | iommu/amd: Make sure irq remapping still works on dma init failuredrivers/ | +31 | 0 replies | |
| 25/27 | iommu/irq: Use amd_iommu_irq_ops if supporteddrivers/ | +5 | 0 replies | |
| 26/27 | iommu/amd: Print message to system log when irq remapping is enableddrivers/ | +2 | 0 replies | |
| 27/27 | iommu/amd: Report irq remapping through IOMMU-APIdrivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)