Commit 9407809b authored by Vasant Hegde's avatar Vasant Hegde Committed by Greg Kroah-Hartman
Browse files

iommu/amd: Add map/unmap_pages() iommu_domain_ops callback support



commit 6b080c4e upstream.

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: default avatarRobin Murphy <robin.murphy@arm.com>
Signed-off-by: default avatarVasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20220825063939.8360-4-vasant.hegde@amd.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
[ partial bacport of the original patch, just what is needed to fix a
  bug in 5.15.y only ]
Fixes: fc65d0ac ("iommu/amd: Selective flush on unmap")
Signed-off-by: default avatarZhichuang Sun <zhichuang@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 29e53a5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment