Joerg Roedel b548e786ce iommu/amd: Init unity mappings only for dma_ops domains
The default domain for a device might also be
identity-mapped. In this case the kernel would crash when
unity mappings are defined for the device. Fix that by
making sure the domain is a dma_ops domain.

Fixes: 0bb6e243d7fb ('iommu/amd: Support IOMMU_DOMAIN_DMA type allocation')
Cc: stable@vger.kernel.org # v4.2+
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2016-07-13 12:35:24 +02:00
..
2015-06-23 18:27:19 -07:00
2016-05-27 15:26:11 -07:00
2015-02-03 18:47:18 +01:00
2016-02-16 08:04:06 -08:00
2016-05-19 17:07:04 -07:00
2015-11-26 14:41:01 +01:00