[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BN9PR11MB527607AB4F81EF2AEBD3D7868C3B2@BN9PR11MB5276.namprd11.prod.outlook.com>
Date: Thu, 28 Mar 2024 07:54:53 +0000
From: "Tian, Kevin" <kevin.tian@...el.com>
To: Lu Baolu <baolu.lu@...ux.intel.com>, Joerg Roedel <joro@...tes.org>, "Will
Deacon" <will@...nel.org>, Robin Murphy <robin.murphy@....com>, "Jason
Gunthorpe" <jgg@...pe.ca>
CC: "Zhang, Tina" <tina.zhang@...el.com>, "Liu, Yi L" <yi.l.liu@...el.com>,
"iommu@...ts.linux.dev" <iommu@...ts.linux.dev>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 08/12] iommu/vt-d: Use cache_tag_flush_range() in
cache_invalidate_user
> From: Lu Baolu <baolu.lu@...ux.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.
Powered by blists - more mailing lists