iommu/arm-smmu-v3: Enhance domain_alloc_user() to allocate PASID capable domain
authorVasant Hegde <vasant.hegde@amd.com>
Mon, 28 Oct 2024 09:38:02 +0000 (09:38 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 29 Oct 2024 09:08:19 +0000 (10:08 +0100)
commit60c30aa6afa2397cde39f15849d808536374b330
tree42bb2367c5f11c9fe3a370cfec723a6140a53d02
parentb7a0855eb95f6db8ac8e17596e76f7b94a790fe6
iommu/arm-smmu-v3: Enhance domain_alloc_user() to allocate PASID capable domain

Core layer is modified to call domain_alloc_user() to allocate PASID
capable domain. Enhance arm_smmu_domain_alloc_user() to allocate
PASID capable domain based on the 'flags' parameter.

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20241028093810.5901-5-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c