iommu/amd: Wait for completion of IOTLB flush in attach_device
authorFilippo Sironi <sironi@amazon.de>
Tue, 10 Sep 2019 17:49:21 +0000 (19:49 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 24 Sep 2019 09:40:04 +0000 (11:40 +0200)
commit0b15e02f0cc4fb34a9160de7ba6db3a4013dc1b7
tree75e0b14311b001521de787fdfa88b07f7f771b6e
parentcc449541f2a8a646ad5ac45cb1c7b59c3ed6b310
iommu/amd: Wait for completion of IOTLB flush in attach_device

To make sure the domain tlb flush completes before the
function returns, explicitly wait for its completion.

Signed-off-by: Filippo Sironi <sironi@amazon.de>
Fixes: 42a49f965a8d ("amd-iommu: flush domain tlb when attaching a new device")
[joro: Added commit message and fixes tag]
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c