From: Liu Yi L <yi.l.liu@intel.com>
To: iommu@lists.linux-foundation.org, baolu.lu@linux.intel.com
Cc: yi.y.sun@intel.com, jun.j.tian@intel.com
Subject: [PATCH v1 1/3] iommu/vt-d: Using pasid_pte_is_present() helper function
Date: Tue, 17 Aug 2021 12:24:23 +0800 [thread overview]
Message-ID: <20210817042425.1784279-2-yi.l.liu@intel.com> (raw)
In-Reply-To: <20210817042425.1784279-1-yi.l.liu@intel.com>
Use pasid_pte_is_present() for present bit check in intel_pasid_tear_down_entry().
Cc: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
---
drivers/iommu/intel/pasid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.25.1
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
next prev parent reply other threads:[~2021-08-17 4:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-17 4:24 [PATCH v1 0/3] Misc fixes to intel iommu driver Liu Yi L
2021-08-17 4:24 ` Liu Yi L [this message]
2021-08-17 4:24 ` [PATCH v1 2/3] iommu/vt-d: Add present bit check in pasid entry setup helper functions Liu Yi L
2021-08-17 4:24 ` [PATCH v1 3/3] iommu/vt-d: Fix Unexpected page request in Privilege Mode Liu Yi L
2021-08-17 12:49 ` Lu Baolu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210817042425.1784279-2-yi.l.liu@intel.com \
--to=yi.l.liu@intel.com \
--cc=baolu.lu@linux.intel.com \
--cc=iommu@lists.linux-foundation.org \
--cc=jun.j.tian@intel.com \
--cc=yi.y.sun@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox