iommu/vt-d: Setup context and enable RID2PASID support
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 10 Dec 2018 01:59:03 +0000 (09:59 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 11 Dec 2018 09:45:59 +0000 (10:45 +0100)
commit7373a8cc381978cfafa4b0285cdd935682f1b2d2
treea512068b7da371039d0e7911924bde64c1ec3b62
parentca6e322d60498087a160fad1c4ea8765ff2d21e7
iommu/vt-d: Setup context and enable RID2PASID support

This patch enables the translation for requests without PASID in
the scalable mode by setting up the root and context entries.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Sanjay Kumar <sanjay.k.kumar@intel.com>
Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c
drivers/iommu/intel-pasid.h
include/linux/intel-iommu.h