iommu/amd: Add map/unmap_pages() iommu_domain_ops callback support
authorVasant Hegde <vasant.hegde@amd.com>
Thu, 25 Aug 2022 06:39:33 +0000 (06:39 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Sep 2022 14:12:33 +0000 (16:12 +0200)
commit6b080c4e815ceba3c08ffa980c858595c07e786a
treeeb20ecd229f854403b458022feb26c2787d60c31
parent251c4db699ca7b966db7e59e8663a231c96ba454
iommu/amd: Add map/unmap_pages() iommu_domain_ops callback support

Implement the map_pages() and unmap_pages() callback for the AMD IOMMU
driver to allow calls from iommu core to map and unmap multiple pages.
Also deprecate map/unmap callbacks.

Finally gatherer is not updated by iommu_v1_unmap_pages(). Hence pass
NULL instead of gather to iommu_v1_unmap_pages.

Suggested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20220825063939.8360-4-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c