]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Global devTLB flush when present context entry changed
authorSanjay Kumar <sanjay.k.kumar@intel.com>
Mon, 12 Jul 2021 07:13:15 +0000 (15:13 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 14 Jul 2021 10:57:39 +0000 (12:57 +0200)
commitfa1f7762986cbd0779a13f4ce08bae09a04774d3
treeaf5662605b316cd9dc15772f526f11bea907f4dc
parentd86e2f9d6f011868cb62d3eb67615a8ccfc450bb
iommu/vt-d: Global devTLB flush when present context entry changed

This fixes a bug in context cache clear operation. The code was not
following the correct invalidation flow. A global device TLB invalidation
should be added after the IOTLB invalidation. At the same time, it
uses the domain ID from the context entry. But in scalable mode, the
domain ID is in PASID table entry, not context entry.

Fixes: 325668c27e148 ("iommu/vt-d: Setup context and enable RID2PASID support")
Cc: stable@vger.kernel.org # v5.0+
Signed-off-by: Sanjay Kumar <sanjay.k.kumar@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210712071315.3416543-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c