OSDN Git Service

iommu/amd: Call domain_flush_complete() in update_domain()
authorJoerg Roedel <jroedel@suse.de>
Mon, 4 May 2020 12:54:11 +0000 (14:54 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 5 May 2020 12:38:38 +0000 (14:38 +0200)
commitf44a4d7e4f1cdef73c90b1dc749c4d8a7372a8eb
tree25111b3df6d5325450b91d29f7847fc8176529b1
parent5b8a9a047b6cad361405c7900c1e1cdd378c4589
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: Joerg Roedel <jroedel@suse.de>
Tested-by: Qian Cai <cai@lca.pw>
Link: https://lore.kernel.org/r/20200504125413.16798-4-joro@8bytes.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c