]> git.ipfire.org Git - thirdparty/kernel/stable.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:06:37 +0000 (06:06 +0800)
commit0c8581863389e969dcbf6d9e79971435a1ecf554
treeda637c63cd76fa341608655a54edd81ee706da61
parentdb6154ead40e0a568982ec4885cfa3fa89e67324
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: Shuah Khan <shuah.khan@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu_init.c