]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Save the right domain ID used by hardware
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 20 Mar 2019 01:58:34 +0000 (09:58 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 22 Mar 2019 11:02:27 +0000 (12:02 +0100)
commit7f15ccd7a408917f20c823d06e1eadc9a13be270
tree6dff3aec9c1a046b9edf38f397aa17b75ec4d349
parent48d648f2d5e301e2ffa0b72d593f1ce2e2e10fae
iommu/vt-d: Save the right domain ID used by hardware

The driver sets a default domain id (FLPT_DEFAULT_DID) in the
first level only pasid entry, but saves a different domain id
in @sdev->did. The value saved in @sdev->did will be used to
invalidate the translation caches. Hence, the driver might
result in invalidating the caches with a wrong domain id.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Fixes: 818922517ff17 ("iommu/vt-d: Shared virtual address in scalable mode")
Signed-off-by: Liu Yi L <yi.l.liu@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