Skip to content

iommu/vt-d: Fix aligned pages for cache invalidation

Lu Baolu linux-iommu lkml 1 version Applied

Status from this message: Applied to iommu (intel/vt-d), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 1 replyApplied

Changes in v2 from the cover letter

- Add a new fix to Limit max address mask to MAX_AGAW_PFN_WIDTH.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2iommu/vt-d: Limit max address mask to MAX_AGAW_PFN_WIDTHdrivers/iommu/intel/cache.c+1 -10 replies
2/2iommu/vt-d: Fix aligned pages in calculate_psi_aligned_address()drivers/iommu/intel/cache.c+1 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKevin Tian
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] iommu/vt-d: Fix aligned pages for cache invalidation

The aligned pages for cache invalidation returned by calculate_psi_aligned_address() are incorrect if the start pfn is not aligned, which can lead to cache inconsistencies when qi_flush_piotlb() uses the number of pages to flush caches for the first-stage translation.

Fix this by updating the aligned pages once the address mask is adjusted.

Change log:

v2:
- Add a new fix to Limit max address mask to MAX_AGAW_PFN_WIDTH.

v1: https://lore.kernel.org/linux-iommu/[email protected]/

Lu Baolu (2):
iommu/vt-d: Limit max address mask to MAX_AGAW_PFN_WIDTH iommu/vt-d: Fix aligned pages in calculate_psi_aligned_address()

 drivers/iommu/intel/cache.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1