Skip to content

AMD IOMMU driver

Joerg Roedel lkml 1 version Applied

Status from this message: applied to tip/x86/core - thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest34 patches 89 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/34AMD IOMMU: add Kconfig entryarch/x86/Kconfig+7 -028 replies
2/34AMD IOMMU: add header file for driver data structures and definesinclude/asm-x86/amd_iommu_types.h+242 -09 replies
3/34AMD IOMMU: add defines and structures for ACPI scanning codearch/x86/kernel/amd_iommu_init.c+101 -02 replies
4/34AMD IOMMU: add data structures to manage the IOMMUs in the systemarch/x86/kernel/amd_iommu_init.c+17 -02 replies
5/34AMD IOMMU: add functions to find last possible PCI device for IOMMUarch/x86/kernel/amd_iommu_init.c+79 -00 replies
6/34AMD IOMMU: add amd_iommu_init.c to Makefilearch/x86/kernel/Makefile+1 -00 replies
7/34AMD IOMMU: add functions for mapping/unmapping the MMIO spacearch/x86/kernel/amd_iommu_init.c+23 -00 replies
8/34AMD IOMMU: add functions for programming IOMMU MMIO spacearch/x86/kernel/amd_iommu_init.c+60 -00 replies
9/34AMD IOMMU: add command buffer (de-)allocationarch/x86/kernel/amd_iommu_init.c+30 -01 reply
10/34AMD IOMMU: add device table initialization functionsarch/x86/kernel/amd_iommu_init.c+45 -00 replies
11/34AMD IOMMU: add functions for IOMMU hardware initialization from ACPIarch/x86/kernel/amd_iommu_init.c+125 -01 reply
12/34AMD IOMMU: add detect code for AMD IOMMU hardwarearch/x86/kernel/amd_iommu_init.c+78 -01 reply
13/34AMD IOMMU: add functions to parse IOMMU memory mapping requirements for devicesarch/x86/kernel/amd_iommu_init.c+87 -01 reply
14/34AMD IOMMU: clue initialization code togetherarch/x86/kernel/amd_iommu_init.c+126 -05 replies
15/34AMD IOMMU: add early detection codearch/x86/kernel/amd_iommu_init.c+20 -00 replies
16/34AMD IOMMU: add kernel command line parameters for AMD IOMMUarch/x86/kernel/amd_iommu_init.c+34 -08 replies
17/34AMD IOMMU: add generic defines and structures for mapping codearch/x86/kernel/amd_iommu.c+40 -04 replies
18/34AMD IOMMU: add amd_iommu.c to Makefilearch/x86/kernel/Makefile+1 -10 replies
19/34AMD IOMMU: add functions to send IOMMU commandsarch/x86/kernel/amd_iommu.c+106 -02 replies
20/34AMD IOMMU: add functions to initialize unity mappingsarch/x86/kernel/amd_iommu.c+122 -00 replies
21/34AMD IOMMU: add address allocation and deallocation functionsarch/x86/kernel/amd_iommu.c+48 -03 replies
22/34AMD IOMMU: add domain allocation and deallocation functionsarch/x86/kernel/amd_iommu.c+147 -02 replies
23/34AMD IOMMU: add functions to find IOMMU device resourcesarch/x86/kernel/amd_iommu.c+75 -03 replies
24/34AMD IOMMU: add generic dma_ops mapping functionsarch/x86/kernel/amd_iommu.c+105 -00 replies
25/34AMD IOMMU: add dma_ops mapping functions for single mappingsarch/x86/kernel/amd_iommu.c+59 -02 replies
26/34AMD IOMMU: add mapping functions for scatter gather listsarch/x86/kernel/amd_iommu.c+98 -02 replies
27/34AMD IOMMU: add mapping functions for coherent mappingsarch/x86/kernel/amd_iommu.c+74 -00 replies
28/34AMD IOMMU: add pre-allocation of protection domainsarch/x86/kernel/amd_iommu.c+34 -00 replies
29/34AMD IOMMU: add dma_ops initialization functionarch/x86/kernel/amd_iommu.c+46 -00 replies
30/34AMD IOMMU: add amd_iommu.h to export functions to the generic x86 dma codearch/x86/kernel/amd_iommu.c arch/x86/kernel/amd_iommu_init.c include/asm-x86/amd_iommu.h+34 -00 replies
31/34AMD IOMMU: initialize dma_ops from IOMMU initialization and enable IOMMUsarch/x86/kernel/amd_iommu_init.c+16 -00 replies
32/34AMD_IOMMU: call detect and initialization functions from dma codearch/x86/kernel/pci-dma.c+5 -00 replies
33/34AMD IOMMU: add MAINTAINERS entryMAINTAINERS+6 -00 replies
34/34AMD IOMMU: add documentation for kernel parametersDocumentation/kernel-parameters.txt+12 -02 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/34] AMD IOMMU driver

Hi,

this is the first post of the initial driver for AMD IOMMU hardware. The driver is tested on hardware with various loads (disk and network) and showed no problems.

It currently supports DMA remapping using the dma_ops API in the x86 architecture code. It also supports isolation of device DMA address spaces as far as the hardware allows that (means each device can get its own DMA address space and can't access the DMA memory of other devices).

Please give this code a good review and send me your comments about it so that I can fix all possible bugs and objections and move this driver forward to merging quality.

Kind regards,

Joerg Roedel

git diff --stat:

 Documentation/kernel-parameters.txt |   12 +
 MAINTAINERS                         |    6 +
 arch/x86/Kconfig                    |    7 +
 arch/x86/kernel/Makefile            |    1 +
 arch/x86/kernel/amd_iommu.c         |  955 +++++++++++++++++++++++++++++++++++
 arch/x86/kernel/amd_iommu_init.c    |  842 ++++++++++++++++++++++++++++++
 arch/x86/kernel/pci-dma.c           |    5 +
 include/asm-x86/amd_iommu.h         |   32 ++
 include/asm-x86/amd_iommu_types.h   |  242 +++++++++
 9 files changed, 2102 insertions(+), 0 deletions(-)