OpenCloudOS-Kernel/drivers/iommu/intel
Lu Baolu 474dd1c650 iommu/vt-d: Fix clearing real DMA device's scalable-mode context entries
The commit 2b0140c696 ("iommu/vt-d: Use pci_real_dma_dev() for mapping")
fixes an issue of "sub-device is removed where the context entry is cleared
for all aliases". But this commit didn't consider the PASID entry and PASID
table in VT-d scalable mode. This fix increases the coverage of scalable
mode.

Suggested-by: Sanjay Kumar <sanjay.k.kumar@intel.com>
Fixes: 8038bdb855 ("iommu/vt-d: Only clear real DMA device's context entries")
Fixes: 2b0140c696 ("iommu/vt-d: Use pci_real_dma_dev() for mapping")
Cc: stable@vger.kernel.org # v5.6+
Cc: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210712071712.3416949-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2021-07-14 12:58:07 +02:00
..
Kconfig iommu/vt-d: Expose latency monitor data through debugfs 2021-06-10 09:06:13 +02:00
Makefile iommu/vt-d: Add common code for dmar latency performance monitors 2021-06-10 09:06:13 +02:00
cap_audit.c iommu/vt-d: Move capability check code to cap_audit files 2021-02-04 14:42:00 +01:00
cap_audit.h iommu/vt-d: Move capability check code to cap_audit files 2021-02-04 14:42:00 +01:00
debugfs.c iommu/vt-d: Expose latency monitor data through debugfs 2021-06-10 09:06:13 +02:00
dmar.c iommu/vt-d: Add cache invalidation latency sampling 2021-06-10 09:06:13 +02:00
iommu.c iommu/vt-d: Fix clearing real DMA device's scalable-mode context entries 2021-07-14 12:58:07 +02:00
irq_remapping.c pci-v5.13-changes 2021-05-05 13:24:11 -07:00
pasid.c iommu/vt-d: Fix kernel-doc syntax in file header 2021-06-10 09:06:12 +02:00
pasid.h iommu/vt-d: Report right snoop capability when using FL for IOVA 2021-04-07 10:41:30 +02:00
perf.c iommu/vt-d: Fix linker error on 32-bit 2021-06-10 10:33:14 +02:00
perf.h iommu/vt-d: Add common code for dmar latency performance monitors 2021-06-10 09:06:13 +02:00
svm.c iommu/vt-d: Fix out-bounds-warning in intel/svm.c 2021-06-10 09:06:13 +02:00
trace.c