lkml.org 
[lkml]   [2024]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 08/12] iommu/vt-d: Use cache_tag_flush_range() in cache_invalidate_user
Date
> 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.

\
 
 \ /
  Last update: 2024-05-27 16:13    [W:0.299 / U:1.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site