]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Remove type argument from do_iommu_domain_alloc() and related
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 10 Jan 2025 16:35:02 +0000 (12:35 -0400)
committerJoerg Roedel <jroedel@suse.de>
Fri, 17 Jan 2025 07:59:29 +0000 (08:59 +0100)
commit55b237dd7f7ec2ee9c7986e0fc28c5867bf63282
tree8736323734d8cd993549431090277365386b28b4
parent02bcd1a8b991c6fc29271fa02250bea1b61fb742
iommu/amd: Remove type argument from do_iommu_domain_alloc() and related

do_iommu_domain_alloc() is only called from
amd_iommu_domain_alloc_paging_flags() so type is always
IOMMU_DOMAIN_UNMANAGED. Remove type and all the dead conditionals checking
it.

IOMMU_DOMAIN_IDENTITY checks are similarly obsolete as the conversion to
the global static identity domain removed those call paths.

The caller of protection_domain_alloc() should set the type, fix the miss
in the SVA code.

Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/4-v2-9776c53c2966+1c7-amd_paging_flags_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu.h
drivers/iommu/amd/iommu.c
drivers/iommu/amd/pasid.c