Skip to content

Commit 0b15e02

Browse files
filipposironijoergroedel
authored andcommitted
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 <[email protected]> Fixes: 42a49f9 ("amd-iommu: flush domain tlb when attaching a new device") [joro: Added commit message and fixes tag] Signed-off-by: Joerg Roedel <[email protected]>
1 parent cc44954 commit 0b15e02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/iommu/amd_iommu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,6 +2212,8 @@ static int attach_device(struct device *dev,
22122212
*/
22132213
domain_flush_tlb_pde(domain);
22142214

2215+
domain_flush_complete(domain);
2216+
22152217
return ret;
22162218
}
22172219

0 commit comments

Comments
 (0)