]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Narrow the use of struct protection_domain to invalidation
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 30 Aug 2024 00:06:18 +0000 (21:06 -0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 4 Sep 2024 09:39:00 +0000 (11:39 +0200)
commit9ac0b3380acdece01fa1b361687e3cd988831c55
tree33ed0185b2a5ee44d2f3a76f1b66b6f0e0204ca0
parent47f218d108950984b24af81f66356ceda380eb74
iommu/amd: Narrow the use of struct protection_domain to invalidation

The AMD io_pgtable stuff doesn't implement the tlb ops callbacks, instead
it invokes the invalidation ops directly on the struct protection_domain.

Narrow the use of struct protection_domain to only those few code paths.
Make everything else properly use struct amd_io_pgtable through the call
chains, which is the correct modular type for an io-pgtable module.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/9-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