]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Make the blocked domain support PASID
authorYi Liu <yi.l.liu@intel.com>
Wed, 4 Dec 2024 12:29:27 +0000 (04:29 -0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 18 Dec 2024 08:39:37 +0000 (09:39 +0100)
commit5f53638882391646e203e064c3ef3cc401745da8
treec570ece2983961a85eada58a953910e6f1a925ab
parent4f0bdab175d6ea544c97766813db001ba28be3a7
iommu/amd: Make the blocked domain support PASID

The blocked domain can be extended to park PASID of a device to be the
DMA blocking state. By this the remove_dev_pasid() op is dropped.

Remove PASID from old domain and device GCR3 table. No need to attach
PASID to the blocked domain as clearing PASID from GCR3 table will make
sure all DMAs for that PASID are blocked.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20241204122928.11987-7-yi.l.liu@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c