]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu/vt-d: Add helper to flush caches for context change
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 2 Jul 2024 13:08:38 +0000 (21:08 +0800)
committerWill Deacon <will@kernel.org>
Wed, 3 Jul 2024 15:39:26 +0000 (16:39 +0100)
commitf90584f4beb84211c4d21b319cc13f391fe9f3c2
tree075d417b925340593a0f476bcbe16d136ad39658
parent2b989ab9bc89b29dd4b5509408b8fa42337eda56
iommu/vt-d: Add helper to flush caches for context change

This helper is used to flush the related caches following a change in a
context table entry that was previously present. The VT-d specification
provides guidance for such invalidations in section 6.5.3.3.

This helper replaces the existing open code in the code paths where a
present context entry is being torn down.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240701112317.94022-2-baolu.lu@linux.intel.com
Link: https://lore.kernel.org/r/20240702130839.108139-7-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/intel/iommu.c
drivers/iommu/intel/iommu.h
drivers/iommu/intel/pasid.c