]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/amd-iommu: Use only per-device dma_ops
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 30 May 2011 13:56:24 +0000 (15:56 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:28:40 +0000 (15:28 -0700)
commit51a2520ca82d8a02baaef9f16610eceb8f85a283
tree1aca9feb1248ee839a0864034860440595169ed7
parenta5815ca6823ec525df5669843bcec04fead80671
x86/amd-iommu: Use only per-device dma_ops

commit 27c2127a15d340706c0aa84e311188a14468d841 upstream.

Unfortunatly there are systems where the AMD IOMMU does not
cover all devices. This breaks with the current driver as it
initializes the global dma_ops variable. This patch limits
the AMD IOMMU to the devices listed in the IVRS table fixing
DMA for devices not covered by the IOMMU.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/amd_iommu.c