]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/amd: Fix unity mapping initialization race
authorJoerg Roedel <jroedel@suse.de>
Fri, 1 Jul 2016 14:42:55 +0000 (16:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 15:42:15 +0000 (08:42 -0700)
commit592354224cfd414078743efab8670ab7b56a2b0c
tree2189d010907e61634e495892c1847d0338bd7450
parenta1cf08028ab4288b352423409257f7ac0823f8d3
iommu/amd: Fix unity mapping initialization race

commit 522e5cb76d0663c88f96b6a8301451c8efa37207 upstream.

There is a race condition in the AMD IOMMU init code that
causes requested unity mappings to be blocked by the IOMMU
for a short period of time. This results on boot failures
and IO_PAGE_FAULTs on some machines.

Fix this by making sure the unity mappings are installed
before all other DMA is blocked.

Fixes: aafd8ba0ca74 ('iommu/amd: Implement add_device and remove_device')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu_init.c