iommu/amd: Remove redundant domain flush from attach_device()
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 22 Nov 2023 09:02:08 +0000 (09:02 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 11 Dec 2023 14:25:34 +0000 (15:25 +0100)
commit3f2571fed2fa9e9ea61fd990a9a4fc20ca83b62e
treead5ccf2b906feef6fad03d4ebdb048404113b84b
parentaf3263758bf0b65a040e90190ab708b8a4027947
iommu/amd: Remove redundant domain flush from attach_device()

Domain flush was introduced in attach_device() path to handle kdump
scenario. Later init code was enhanced to handle kdump scenario where
it also takes care of flushing everything including TLB
(see early_enable_iommus()).

Hence remove redundant flush from attach_device() function.

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20231122090215.6191-3-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c