]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Get domain ID before clear pasid entry
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 1 Mar 2019 03:23:13 +0000 (11:23 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 1 Mar 2019 09:23:36 +0000 (10:23 +0100)
commitcfd45e14997fff511c14771ba9d5974d497890e7
treec4215556cfd019d94ea97549b34f4512b951c4b2
parente8dacc2f4db8bca2173d23b12c6c9ad3630f299a
iommu/vt-d: Get domain ID before clear pasid entry

After tearing down a pasid entry, the domain id is used to
invalidate the translation caches. Retrieve the domain id
from the pasid entry value before clearing the pasid entry.
Otherwise, we will always use domain id 0.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
Fixes: c207caec6fd63 ("iommu/vt-d: Add second level page table interface")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-pasid.c