iommu/amd: Introduce per device DTE update function
authorVasant Hegde <vasant.hegde@amd.com>
Thu, 18 Apr 2024 10:33:47 +0000 (10:33 +0000)
committerJoerg Roedel <jroedel@suse.de>
Fri, 26 Apr 2024 10:15:56 +0000 (12:15 +0200)
commitc5ebd09625391000026b0860952e05d0f7fc4519
tree09458208dc0eae57788f8c177a7f80ed2dd8b19c
parent9433d5b2ace529d8a66863d4b5127c6c4ca6e4c2
iommu/amd: Introduce per device DTE update function

Consolidate per device update and flush logic into separate function.
Also make it as global function as it will be used in subsequent series
to update the DTE.

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20240418103400.6229-3-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu.h
drivers/iommu/amd/iommu.c