iommu/amd: Add support for enabling/disabling IOMMU features
authorWei Huang <wei.huang2@amd.com>
Thu, 18 Apr 2024 10:33:48 +0000 (10:33 +0000)
committerJoerg Roedel <jroedel@suse.de>
Fri, 26 Apr 2024 10:15:57 +0000 (12:15 +0200)
commitdb44bd517ff2de4224fdb0e9c0db426572f9fa11
treebd887ece8a0c9871d143572f7758d0ea507469ee
parentc5ebd09625391000026b0860952e05d0f7fc4519
iommu/amd: Add support for enabling/disabling IOMMU features

Add support for struct iommu_ops.dev_{enable/disable}_feat. Please note
that the empty feature switches will be populated by subsequent patches.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
Co-developed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20240418103400.6229-4-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c