Commit f44a4d7e authored by Joerg Roedel's avatar Joerg Roedel

iommu/amd: Call domain_flush_complete() in update_domain()

The update_domain() function is expected to also inform the hardware
about domain changes. This needs a COMPLETION_WAIT command to be sent
to all IOMMUs which use the domain.
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Tested-by: default avatarQian Cai <cai@lca.pw>
Link: https://lore.kernel.org/r/20200504125413.16798-4-joro@8bytes.orgSigned-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 5b8a9a04
...@@ -2321,6 +2321,7 @@ static void update_domain(struct protection_domain *domain) ...@@ -2321,6 +2321,7 @@ static void update_domain(struct protection_domain *domain)
domain_flush_devices(domain); domain_flush_devices(domain);
domain_flush_tlb_pde(domain); domain_flush_tlb_pde(domain);
domain_flush_complete(domain);
} }
int __init amd_iommu_init_api(void) int __init amd_iommu_init_api(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment