Messages in this thread | | | From | "Tian, Kevin" <> | Subject | RE: [PATCH 08/12] iommu/vt-d: Use cache_tag_flush_range() in cache_invalidate_user | Date | Thu, 28 Mar 2024 07:54:53 +0000 |
| |
> From: Lu Baolu <baolu.lu@linux.intel.com> > Sent: Monday, March 25, 2024 10:17 AM > > @@ -166,9 +122,9 @@ static int intel_nested_cache_invalidate_user(struct > iommu_domain *domain, > break; > } > > - intel_nested_flush_cache(dmar_domain, inv_entry.addr, > - inv_entry.npages, > - inv_entry.flags & > IOMMU_VTD_INV_FLAGS_LEAF); > + cache_tag_flush_range(dmar_domain, inv_entry.addr, > + inv_entry.npages, > + inv_entry.flags & > IOMMU_VTD_INV_FLAGS_LEAF);
the helper requires an 'end' address but 'npages' is incorrectly used here.
| |