]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Remove global page flush support
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Mon, 26 Aug 2019 15:53:29 +0000 (08:53 -0700)
committerJoerg Roedel <jroedel@suse.de>
Tue, 3 Sep 2019 13:01:27 +0000 (15:01 +0200)
commit8d93dac4b8d1cfa13e19d07c422c6a89d82b15a3
treed0af966c4e74c3be1f5cf9f360d6eabf07c15d05
parenteaf02d7808da4b7906bcee08846714aa87329fe8
iommu/vt-d: Remove global page flush support

Global pages support is removed from VT-d spec 3.0. Since global pages G
flag only affects first-level paging structures and because DMA request
with PASID are only supported by VT-d spec. 3.0 and onward, we can
safely remove global pages support.

For kernel shared virtual address IOTLB invalidation, PASID
granularity and page selective within PASID will be used. There is
no global granularity supported. Without this fix, IOTLB invalidation
will cause invalid descriptor error in the queued invalidation (QI)
interface.

Fixes: c876f2ac37d4 ("iommu/vt-d: Shared virtual address in scalable mode")
Reported-by: Sanjay K Kumar <sanjay.k.kumar@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-svm.c
include/linux/intel-iommu.h