iommu/amd: Do not Invalidate IRT when IRTE caching is disabled
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tue, 30 May 2023 14:11:36 +0000 (10:11 -0400)
committerJoerg Roedel <jroedel@suse.de>
Fri, 9 Jun 2023 12:47:10 +0000 (14:47 +0200)
commit98aeb4ea5599c5f7fbb1645bdd2050d0be96dfa3
tree16ca996769a61936934d3408baaad77a69688928
parent66419036f68a838c00cbccacd6cb2e99da6e5710
iommu/amd: Do not Invalidate IRT when IRTE caching is disabled

With the Interrupt Remapping Table cache disabled, there is no need to
issue invalidate IRT and wait for its completion. Therefore, add logic
to bypass the operation.

Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Suggested-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/20230530141137.14376-5-suravee.suthikulpanit@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c