iommu/amd: Add helper function to check GIOSUP/GTSUP
authorVasant Hegde <vasant.hegde@amd.com>
Mon, 28 Oct 2024 09:38:03 +0000 (09:38 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 29 Oct 2024 09:08:20 +0000 (10:08 +0100)
commitb0ffdb23e94fcb30185bc618edf8608a7b0c9dfc
tree578f26bf2ef6fea99f59e7d83f1d738ef927dcd3
parent60c30aa6afa2397cde39f15849d808536374b330
iommu/amd: Add helper function to check GIOSUP/GTSUP

amd_iommu_gt_ppr_supported() only checks for GTSUP. To support PASID
with V2 page table we need GIOSUP as well. Hence add new helper function
to check GIOSUP/GTSUP.

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