]> 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)
commitbd8d9ff066a3a25db80c188d2876e7c8a7d1d840
treed0af966c4e74c3be1f5cf9f360d6eabf07c15d05
parent7bd0c22b4d36f6a1c97abb13fc5aef05638b2c0e
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: 818922517ff1 ("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