linux/drivers/iommu/intel
Lu Baolu 6c00612d0c iommu/vt-d: Report right snoop capability when using FL for IOVA
The Intel VT-d driver checks wrong register to report snoop capablility
when using first level page table for GPA to HPA translation. This might
lead the IOMMU driver to say that it supports snooping control, but in
reality, it does not. Fix this by always setting PASID-table-entry.PGSNP
whenever a pasid entry is setting up for GPA to HPA translation so that
the IOMMU driver could report snoop capability as long as it runs in the
scalable mode.

Fixes: b802d070a5 ("iommu/vt-d: Use iova over first level")
Suggested-by: Rajesh Sankaran <rajesh.sankaran@intel.com>
Suggested-by: Kevin Tian <kevin.tian@intel.com>
Suggested-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210330021145.13824-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2021-04-07 10:41:30 +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: Rename intel-pasid.h to pasid.h 2020-07-24 10:51:21 +02:00
dmar.c iommu/vt-d: Report more information about invalidation errors 2021-03-18 11:27:46 +01:00
iommu.c iommu/vt-d: Report right snoop capability when using FL for IOVA 2021-04-07 10:41:30 +02:00
irq_remapping.c iommu/vt-d: Audit IOMMU Capabilities and add helper functions 2021-02-04 14:42:00 +01:00
Kconfig iommu/vt-d: Convert intel iommu driver to the iommu ops 2020-11-25 12:03:49 +00:00
Makefile iommu/vt-d: Audit IOMMU Capabilities and add helper functions 2021-02-04 14:42:00 +01:00
pasid.c iommu/vt-d: Report right snoop capability when using FL for IOVA 2021-04-07 10:41:30 +02:00
pasid.h iommu/vt-d: Report right snoop capability when using FL for IOVA 2021-04-07 10:41:30 +02:00
svm.c iommu/vt-d: Remove SVM_FLAG_PRIVATE_PASID 2021-04-07 10:15:19 +02:00
trace.c