iommu/vt-d: Add a check for 1GB page support
authorSohil Mehta <sohil.mehta@intel.com>
Wed, 20 Dec 2017 19:59:25 +0000 (11:59 -0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 17 Jan 2018 14:02:50 +0000 (15:02 +0100)
commit59103caa6839592788e7ad58b35863aac034631a
treeb645989c4381eb78047b628f04be37a602c08538
parent5e3b4a15dd8da6bded2092694c8db3b505cbf711
iommu/vt-d: Add a check for 1GB page support

Add a check to verify IOMMU 1GB page support. If the CPU supports 1GB
pages but the IOMMU does not support it then disable SVM by not
allocating PASID tables.

Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-svm.c
include/linux/intel-iommu.h