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)
commit84c11e4df5aa4955acaa441f0cf1cb2e50daf64b
tree6dff3aec9c1a046b9edf38f397aa17b75ec4d349
parent5bb71fc790a88d063507dc5d445ab8b14e845591
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: 1c4f88b7f1f92 ("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