Commit 474dd1c
iommu/vt-d: Fix clearing real DMA device's scalable-mode context entries
The commit 2b0140c ("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: 8038bdb ("iommu/vt-d: Only clear real DMA device's context entries")
Fixes: 2b0140c ("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>1 parent 37764b9 commit 474dd1c
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4472 | 4472 | | |
4473 | 4473 | | |
4474 | 4474 | | |
4475 | | - | |
| 4475 | + | |
4476 | 4476 | | |
4477 | 4477 | | |
4478 | 4478 | | |
4479 | 4479 | | |
4480 | 4480 | | |
4481 | | - | |
4482 | | - | |
| 4481 | + | |
4483 | 4482 | | |
4484 | 4483 | | |
4485 | 4484 | | |
| |||
0 commit comments