projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ddc348
)
iommu/vt-d: Use pasid_pte_is_present() helper function
author
Liu Yi L
<yi.l.liu@intel.com>
Wed, 18 Aug 2021 13:48:51 +0000
(21:48 +0800)
committer
Joerg Roedel
<jroedel@suse.de>
Thu, 19 Aug 2021 08:41:08 +0000
(10:41 +0200)
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>
drivers/iommu/intel/pasid.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel/pasid.c
b/drivers/iommu/intel/pasid.c
index c6cf44a6c92305c57093feb22372a6076b0a0536..02e10491184b40da76e514660824f8a7d61cb7ae 100644
(file)
--- 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);