Linux IOMMU Development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iommu/vt-d: Fix aligned pages for cache invalidation
@ 2024-07-09 15:26 Lu Baolu
  2024-07-09 15:26 ` [PATCH v2 1/2] iommu/vt-d: Limit max address mask to MAX_AGAW_PFN_WIDTH Lu Baolu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Lu Baolu @ 2024-07-09 15:26 UTC (permalink / raw)
  To: Joerg Roedel, Will Deacon, Robin Murphy, Kevin Tian,
	Louis Maliyam
  Cc: iommu, linux-kernel, Lu Baolu

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/20240708121417.18705-1-baolu.lu@linux.intel.com/

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-10 12:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-09 15:26 [PATCH v2 0/2] iommu/vt-d: Fix aligned pages for cache invalidation Lu Baolu
2024-07-09 15:26 ` [PATCH v2 1/2] iommu/vt-d: Limit max address mask to MAX_AGAW_PFN_WIDTH Lu Baolu
2024-07-09 15:26 ` [PATCH v2 2/2] iommu/vt-d: Fix aligned pages in calculate_psi_aligned_address() Lu Baolu
2024-07-10 12:39 ` [PATCH v2 0/2] iommu/vt-d: Fix aligned pages for cache invalidation Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox