]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Remove the confusing dummy iommu_flush_ops tlb ops
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 30 Aug 2024 00:06:21 +0000 (21:06 -0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 4 Sep 2024 09:39:02 +0000 (11:39 +0200)
commitc435209f7203d90676e9eeae6c1b2d375fbf0304
tree3f2e737724140b66fdb34ddc6305226ac96fe45c
parenta06dcb6b7897152e4dafdc9d4d84e9a35d0ae94a
iommu/amd: Remove the confusing dummy iommu_flush_ops tlb ops

The iommu driver is supposed to provide these ops to its io_pgtable
implementation so that it can hook the invalidations and do the right
thing.

They are called by wrapper functions like io_pgtable_tlb_add_page() etc,
which the AMD code never calls.

Instead it directly calls the AMD IOMMU invalidation functions by casting
to the struct protection_domain. Remove it all.

Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/12-v2-831cdc4d00f3+1a315-amd_iopgtbl_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/io_pgtable.c
drivers/iommu/amd/io_pgtable_v2.c