]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Change amd_iommu_pgtable to use enum protection_domain_mode
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 10 Jan 2025 16:35:03 +0000 (12:35 -0400)
committerJoerg Roedel <jroedel@suse.de>
Fri, 17 Jan 2025 07:59:30 +0000 (08:59 +0100)
commit13b4ec749163710e3d188d2fed7405308b1b1e73
tree54134adcb513918a4f2c305a5c40a8be106213e8
parent55b237dd7f7ec2ee9c7986e0fc28c5867bf63282
iommu/amd: Change amd_iommu_pgtable to use enum protection_domain_mode

Currently it uses enum io_pgtable_fmt which is from the io pagetable code
and most of the enum values are invalid. protection_domain_mode is
internal the driver and has the only two valid values.

Fix some signatures and variables to use the right type as well.

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