]> 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:05:36 +0000 (15:05 -0700)
commita4d37345244dea111a49dda25cc30b2ae7dab05c
treea2f45a35f90bd7abd27da8b106423237e8ba322b
parent69694054d5004619d095cdcd1346cf291068a84d
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