]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu/vt-d: Reserve a domain id for FL and PT modes
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 10 Dec 2018 01:58:59 +0000 (09:58 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 11 Dec 2018 09:45:58 +0000 (10:45 +0100)
commit3b33d4ab3217337f648f7ff3e57e755e6444c748
treed3d57942c0777b924091d9ef3884251d8a6dc861
parent5d308fc1ecf5351418a4f003ccb74dc91b424bd1
iommu/vt-d: Reserve a domain id for FL and PT modes

Vt-d spec rev3.0 (section 6.2.3.1) requires that each pasid
entry for first-level or pass-through translation should be
programmed with a domain id different from those used for
second-level or nested translation. It is recommended that
software could use a same domain id for all first-only and
pass-through translations.

This reserves a domain id for first-level and pass-through
translations.

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