Re: [PATCH v2] iommu/vt-d: Flush cache for PASID table before using it
From: Baolu Lu
Date: Tue Jan 20 2026 - 02:01:55 EST
On 12/21/25 20:35, Dmytro Maluka wrote:
When writing the address of a freshly allocated zero-initialized PASID
table to a PASID directory entry, do that after the CPU cache flush for
this PASID table, not before it, to avoid the time window when this
PASID table may be already used by non-coherent IOMMU hardware while
its contents in RAM is still some random old data, not zero-initialized.
v1 -> v2:
Add Fixes: tag.
Fixes: 194b3348bdbb ("iommu/vt-d: Fix PASID directory pointer coherency")
Signed-off-by: Dmytro Maluka<dmaluka@xxxxxxxxxxxx>
---
drivers/iommu/intel/pasid.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Queued for iommu next.
Thanks,
baolu