]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iommu/amd: Initialize device table after dma_ops
authorJoerg Roedel <joro@8bytes.org>
Wed, 6 Feb 2013 11:55:23 +0000 (12:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:03:33 +0000 (06:03 +0800)
commit9b2eee352d5d276f212b751ad86d3bd4f156fd51
tree487d09fb5834abe89ebaaa58e5e576faf3f6a2be
parentd90dc15e9799e68afce2834a67113f6fff3046fe
iommu/amd: Initialize device table after dma_ops

commit f528d980c17b8714aedc918ba86e058af914d66b upstream.

When dma_ops are initialized the unity mappings are
created. The init_device_table_dma() function makes sure DMA
from all devices is blocked by default. This opens a short
window in time where DMA to unity mapped regions is blocked
by the IOMMU. Make sure this does not happen by initializing
the device table after dma_ops.

Signed-off-by: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu_init.c