Skip to content

Commit f81b846

Browse files
LuBaolujoergroedel
authored andcommitted
iommu/vt-d: Remove incorrect PSI capability check
The PSI (Page Selective Invalidation) bit in the capability register is only valid for second-level translation. Intel IOMMU supporting scalable mode must support page/address selective IOTLB invalidation for first-level translation. Remove the PSI capability check in SVA cache invalidation code. Fixes: 8744daf ("iommu/vt-d: Remove global page flush support") Cc: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent cde9319 commit f81b846

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/iommu/intel-svm.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,7 @@ static void intel_flush_svm_range_dev (struct intel_svm *svm, struct intel_svm_d
104104
{
105105
struct qi_desc desc;
106106

107-
/*
108-
* Do PASID granu IOTLB invalidation if page selective capability is
109-
* not available.
110-
*/
111-
if (pages == -1 || !cap_pgsel_inv(svm->iommu->cap)) {
107+
if (pages == -1) {
112108
desc.qw0 = QI_EIOTLB_PASID(svm->pasid) |
113109
QI_EIOTLB_DID(sdev->did) |
114110
QI_EIOTLB_GRAN(QI_GRAN_NONG_PASID) |

0 commit comments

Comments
 (0)