]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Set global dma_ops if swiotlb is disabled
authorJoerg Roedel <jroedel@suse.de>
Tue, 28 Jul 2015 14:58:51 +0000 (16:58 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 30 Jul 2015 08:28:48 +0000 (10:28 +0200)
commit96e631eb2a4ca51ea9a2bf59c30fc2a1628e04a9
tree2d5a6e86acf90f547f0c309ff5aa0241b0ed5025
parentfefb62896172ae8ebeccb3b37f01163359796e82
iommu/amd: Set global dma_ops if swiotlb is disabled

Some AMD systems also have non-PCI devices which can do DMA.
Those can't be handled by the AMD IOMMU, as the hardware can
only handle PCI. These devices would end up with no dma_ops,
as neither the per-device nor the global dma_ops will get
set. SWIOTLB provides global dma_ops when it is active, so
make sure there are global dma_ops too when swiotlb is
disabled.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c