iommu/amd: Add SVA domain support
authorVasant Hegde <vasant.hegde@amd.com>
Thu, 18 Apr 2024 10:34:00 +0000 (10:34 +0000)
committerJoerg Roedel <jroedel@suse.de>
Fri, 26 Apr 2024 10:16:08 +0000 (12:16 +0200)
commita5a91e54846d35c234939fb9170e035805353049
tree95b51d0aa733b63c8d457a8259777b22642d5090
parent80af5a45202422db957549a241e00bf4d4e0ce89
iommu/amd: Add SVA domain support

- Allocate SVA domain and setup mmu notifier. In free path unregister
  mmu notifier and free protection domain.

- Add mmu notifier callback function. It will retrieve SVA protection
  domain and invalidates IO/TLB.

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