diff options
author | Liu Yi L <yi.l.liu@intel.com> | 2021-08-18 15:48:51 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2021-08-19 10:41:08 +0200 |
commit | 8123b0b86855185357e4b12f29e327ba773fc58d (patch) | |
tree | d5fe6762fcf2ac9e806b3269270d2c61c3d8d4b8 /drivers/iommu/intel | |
parent | iommu/vt-d: Drop the kernel doc annotation (diff) | |
download | linux-8123b0b86855185357e4b12f29e327ba773fc58d.tar.xz linux-8123b0b86855185357e4b12f29e327ba773fc58d.zip |
iommu/vt-d: Use pasid_pte_is_present() helper function
Use the pasid_pte_is_present() helper for present bit check in the
intel_pasid_tear_down_entry().
Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20210817042425.1784279-1-yi.l.liu@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210818134852.1847070-9-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel')
-rw-r--r-- | drivers/iommu/intel/pasid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel/pasid.c b/drivers/iommu/intel/pasid.c index c6cf44a6c923..02e10491184b 100644 --- a/drivers/iommu/intel/pasid.c +++ b/drivers/iommu/intel/pasid.c @@ -517,7 +517,7 @@ void intel_pasid_tear_down_entry(struct intel_iommu *iommu, struct device *dev, if (WARN_ON(!pte)) return; - if (!(pte->val[0] & PASID_PTE_PRESENT)) + if (!pasid_pte_is_present(pte)) return; did = pasid_get_domain_id(pte); |